The concurrentConsumers on the JMS is for Spring JMS stuff. So you are
in the mersey how they assign thread names in that thread pool using
by spring JMS.
You may be able to hook a custom thread pool in Spring JMS using the
taskExecutor option.

And why do you have a threads in the route as well? You dont need that.


On Tue, Oct 12, 2010 at 4:28 PM, Sri <[email protected]> wrote:
>
> Hello,
>
>
> I am using concurrent consumers to process the messages from active mq and I
> wanted to get the thread number to debug  which thread is processing which
> message. is there any way that I can get the thread number from the
> processor.
>
> I am using the route in the following way.
>
> from("jms-test:queue:" + _notificationQueue
>                                                                + 
> "?concurrentConsumers=" + concurrentConsumers)
>                                                
> .onException(Exception.class).retryWhile(
>                                                                
> bean("myRetryBean")).end()
> .threads(concurrentConsumers).process(processor)
>                                                .recipientList(
>                                                                
> header("recipientListHeader").tokenize(","))
>                                                
> .parallelProcessing().timeout(aggregationTimeout)
>                                                
> .executorService(customThreadPoolExecutor).streaming()
>                                                .aggregationStrategy(
>                                                                new 
> RecipientAggregationStrategy(
>                                                                               
>  _endpointDeliveredBaseUri)).to(
>                                                                
> "direct:chunk.completed");
>
> suppose if the concurrent consumers size is 5  , there will be 5 threads
> consuming messages with thread numbers starts from 0 to 5.
>
> is there any way that I can get this number.
>
>
> Thanks for your help in advance.
>
> Regards
> Sri
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Getting-Thread-number-on-concurrent-consumers-threads-tp3208969p3208969.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to