Forum Home » Fuse Distributions » Fuse Mediation Router

Thread: update the routes in an existing CamelContext at runtime

 

Permlink Replies: 6 - Last Post: Nov 30, 2011 3:33 PM Last Post By: mayank27
mayank27

Posts: 4
Registered: 11/29/11
update the routes in an existing CamelContext at runtime
Posted: Nov 29, 2011 10:57 PM
  Click to reply to this thread Reply
Hello,

I'm trying to update the routes in an existing CamelContext at runtime, without having to restart the bundle / the entire CamelContext.

Apache camel 2.6 and onward supports dynamic loading of camel routes without restarting camel context as explained in example "http://camel.apache.org/loading-routes-from-xml-files.html".

Does Fuse supports this? If yes, then what version onward?

Thanks.
mjabali

Posts: 25
Registered: 04/09/09
Re: update the routes in an existing CamelContext at runtime
Posted: Nov 29, 2011 11:08 PM   in response to: mayank27 in response to: mayank27
  Click to reply to this thread Reply
Hi,

The current release of the FUSE Mediation Router (2.8.0-fuse-00-08) should support what you're looking for. Take a look at the API reference here: http://fusesource.com/docs/router/2.8/apidoc/org/apache/camel/impl/DefaultCamelContext.html .

The download is available here: http://fusesource.com/downloads/ and the documentation here: http://fusesource.com/products/enterprise-camel/#documentation

Hope this helps,

-Marcelo
mayank27

Posts: 4
Registered: 11/29/11
Re: update the routes in an existing CamelContext at runtime
Posted: Nov 30, 2011 1:47 AM   in response to: mjabali in response to: mjabali
  Click to reply to this thread Reply
Im currently using the version 2.6.0-fuse-01-15. Is there a way to find out if this version supports the same as mentioned above?

Thanks.
ffang

Posts: 1,320
Registered: 12/24/07
Re: update the routes in an existing CamelContext at runtime
Posted: Nov 30, 2011 1:50 AM   in response to: mayank27 in response to: mayank27
  Click to reply to this thread Reply
Hi,

It's FUSE ESB 4.3.1-fuse-01-15 which use camel 2.6.0-fuse-01-15.

Freeman
mayank27

Posts: 4
Registered: 11/29/11
Re: update the routes in an existing CamelContext at runtime
Posted: Nov 30, 2011 2:04 AM   in response to: ffang in response to: ffang
  Click to reply to this thread Reply
Ffang,

Since you mentioned "It's FUSE ESB 4.3.1-fuse-01-15 which use camel 2.6.0-fuse-01-15.", does that mean this version of camel can update the routes in an existing CamelContext at runtime as mentioned in example http://camel.apache.org/loading-routes-from-xml-files.html?
njiang

Posts: 572
Registered: 09/17/07
Re: update the routes in an existing CamelContext at runtime
Posted: Nov 30, 2011 2:57 AM   in response to: mayank27 in response to: mayank27
  Click to reply to this thread Reply
Yes, it supports that, camel 2.6.0-fuse-01-15 is based on apache camel 2.6.0 with lots bug fixes.

Willem
mayank27

Posts: 4
Registered: 11/29/11
Re: update the routes in an existing CamelContext at runtime
Posted: Nov 30, 2011 3:33 PM   in response to: njiang in response to: njiang
  Click to reply to this thread Reply
Thanks Willem for the clarification.