Aug 3rd, 2011, 10:53 AM
Setting DefaultMessageListenerContainer thread names
I'd like to customize the names of consumer threads that service JMS queues. My motivation is to ease the debugging of an application with dozens of queues and hundreds of consumer threads servicing those queues.
The problem is that by default all consumer thread names have the form: DefaultMessageListenerContainer-#, where # is an integer. This thread naming convention does not result in unique names nor does it allow threads to be easily associated with their queues.
Is there a way to specify the prefix used to name consumer threads?
We use Spring 3.0.3 with ServiceMix 4.3.0, Camel 2.4, and ActiveMQ 5.4.1.
We specify camel routes as follows:
<from uri= "activemq:queue:MYQUEUE?concurrentConsumers=10 " />
We also specify the ActiveMQConnectionFactory and PooledConnectionFactory classes in our configuration files.
Thanks for any thoughts on the subject,
Last edited by richcar; Aug 8th, 2011 at 07:38 AM.
Feb 4th, 2013, 12:33 PM
Did you find a solution
Did you find a way to customize the names of the consumer threads ?
If so, can you explain your solution, I'm having the same problem.
Originally Posted by richcar
Tags for this Thread