You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by alodde <an...@lod2e.de> on 2010/11/16 12:15:09 UTC

influcent processing of camel route while runtime

Hello everybody,

Is there a way to influence the processing of camel route while runtime? I
like to process two routes in parallel. Under special circumstances in route
1 (route 1 detected a problem), route 2 should be interrupted (if possible
by throwing an exception).

Thanks for your help,

Andreas

-- 
View this message in context: http://camel.465427.n5.nabble.com/influcent-processing-of-camel-route-while-runtime-tp3267147p3267147.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: influcent processing of camel route while runtime

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

Maybe you can attach a customer processor after the error handler, when 
the route1 throws the exception, your customer processor can pause the 
route2.

On 11/16/10 7:15 PM, alodde wrote:
>
> Hello everybody,
>
> Is there a way to influence the processing of camel route while runtime? I
> like to process two routes in parallel. Under special circumstances in route
> 1 (route 1 detected a problem), route 2 should be interrupted (if possible
> by throwing an exception).
>
> Thanks for your help,
>
> Andreas
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Re: influcent processing of camel route while runtime

Posted by Ashwin Karpe <ak...@fusesource.com>.
Hi,

Yes it is possible to influence the running of a route from another route.
You can do this with a processor.

The code would involve
       a> Getting a reference to the camel context.
       b> Getting and identifying the correct route from a list of route
definitions
       c> Performing the route operation (stop, suspend etc)...

Note sure exactly what your requirement is, however, the ability does exist
in Camel.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
-- 
View this message in context: http://camel.465427.n5.nabble.com/influcent-processing-of-camel-route-while-runtime-tp3267147p3267225.html
Sent from the Camel - Users mailing list archive at Nabble.com.