I'm using a JMS listener container to call a method on a singleton service-type bean. Since I configured the concurrency to be 1, I expected the service not to be called by several threads in parallel. However, that's what's happening.
I tried the simple and default message listener container with identical results. I also made sure there's only one message listener container instantiated in my application context.Code:<jms:listener-container container-type="simple" destination-type="queue" connection-factory="connectionFactory" message-converter="myMessageConverter" concurrency="1" acknowledge="transacted" cache="connection"> <jms:listener destination="myQueue" ref="myService" method="myMethod"/> </jms:listener-container>
Any help would be greatly appreciated.
Cheers,
Dan


Reply With Quote
