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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -