spring jms - Is it possible for DefaultMessageListenerContainer to create n number of JMS sessions each from a different JMS connections -


i have set defaultmessagelistenercontainer implementation of javax.jms.messagelistener wired it.

i use mqqueueconnectionfactory wired cachingconnectionfactory. have set cacheconsumers true @ defaultmessagelistenercontainer , have set sessioncachesize equivalent number of concurrentconsumers.

i see , when concurrentconsumers set 10 , ten jms sessions created single jms connection. there way create jms sessions 10 different jms connections?

please advise.

not when using caching connection factory, subclass of singleconnectionfactory; use vendor connection factory directly if want separate connections. why want/need separate connections anyway?

it not necessary use ccf listener container because sessions long-lived, and, in case, caching consumers can cause issues if use variable concurrency.

see this answer more detailed explanation.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -