Nov 1st, 2010, 04:44 AM
How to manage threads with javax.jms.MessageListener
I have a simple Java program that uses Spring JMS to consume messages.
I have created one message listener container SimpleMessageListenerContainer with the class org.springframework.jms.listener.SimpleMessageList enerContainer.
I receive many messages on the same queue.I would like to be able to process received messages in parallel, for example to have 10 threads available for processing.
What's the default behaviour, are there many threads started ? How to configure or modifiy the number of threads? Is it linked to the number of JMS sessions? Is there a thread dedicated for each JMS session ? How to manage these technical parameters ?
Tags for this Thread