camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jjb <>
Subject creating a new bean per route invocation
Date Tue, 04 Aug 2009 20:53:35 GMT


I need to do synchronous processing but not hold up routes of the same type
when many instances are active at the same time.  Take the following bean
and route definitions from camel-context.xml:

   <bean id="processor" class="DerivedClass"/>


    <!-- begin camel context -->
      <from uri="jetty:"/>
      <to uri="bean:processor?method=process"/>

And let's say I have a bunch of HTTP clients sending data at a high rate. 
It seems if I want this route to be synchronous, all concurrent invocations
of the route will be serialized chronologically.  Is there a way to force
Camel to create a new instance of DerivedClass (or better yet, grab one from
a pool) each time a client hits the route so one client doesn't block


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message