You can use Camel's JMX information to know how many messages are currently in-flight on a per route basis. Then you can see if there is 5 in-flight messages on the <from uri="seda:xxx"/> route.
Though as its just Java code, you can also just use some java bean to keep state of your jobs. And set the state in the start | end of the route etc. On Sat, Nov 30, 2013 at 9:33 PM, Sameer Patro <sameersanatkpa...@gmail.com> wrote: > Hi, > I have a program in which when the jobs arrives in a camel > channels(seda),the processing of the job happens within the threads.We have > configured 5 thread for the processing. > Can anyone guide me how i can create a program to know the running status > of the job getting processed within the SEDA threads? > > Thanks, > Sameer -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen