Forum Home » Fuse Distributions » Fuse Mediation Router

Thread: REST/Soap service for creating Camel routes

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Last Post: Mar 14, 2012 7:44 AM Last Post By: davsclaus
dr8ball

Posts: 9
Registered: 02/03/12
REST/Soap service for creating Camel routes
Posted: Mar 12, 2012 5:04 AM
 
  Click to reply to this thread Reply
Is there a REST/Soap interface available to create camel routes? I have a need to create/remove routes dynamically and do not want to create something from scratch if something already exists that works and has been tested thoroughly . I have seen the camel-web component before but it does not seem to be available in the latest activemq or camel distributions anymore.
davsclaus

Posts: 1,893
Registered: 10/14/08
Re: REST/Soap service for creating Camel routes
Posted: Mar 12, 2012 8:08 AM   in response to: dr8ball in response to: dr8ball
 
  Click to reply to this thread Reply
Fuse IDE can currently edit any existing routes at runtime.
http://fusesource.com/products/fuse-ide/
... as well as delete any existing routes.

Adding a new route at runtime is on the roadmap.
I am not sure its exposed easily in the UI, but the underlying technologies makes it possible.

There is API on CamelContext to add/remove routes at runtime in Java and JMX.
You can expose those APIs using a REST/SOAP API yourself.
The JMX API is on ManagedCamelContext.

See this example for adding a new route at runtime
http://camel.apache.org/loading-routes-from-xml-files.html
dr8ball

Posts: 9
Registered: 02/03/12
Re: REST/Soap service for creating Camel routes
Posted: Mar 14, 2012 5:25 AM   in response to: davsclaus in response to: davsclaus
 
  Click to reply to this thread Reply
What about camel-web?

I found these related to camel-web not being distributed with ActiveMQ anymore:

https://issues.apache.org/jira/browse/AMQ-3491
https://issues.apache.org/jira/browse/AMQ-3329

Are the licensing issues fixed? I noticed that 3329 says that they reverted to an older version due to size, but I cannot find it in the latest ActiveMQ releases.
davsclaus

Posts: 1,893
Registered: 10/14/08
Re: REST/Soap service for creating Camel routes
Posted: Mar 14, 2012 7:44 AM   in response to: dr8ball in response to: dr8ball
 
  Click to reply to this thread Reply
I think camel web is removed from the AMQ distribution. You would have to manually install it 'somehow', we do not have any instructions for that at Apache.

Camel web console is not recommended to be used for production usage. Its a developer tool, not a production management tool.