On Tue, Mar 13, 2012 at 5:39 PM, marnold <[email protected]> wrote:
> Hi,
>
> I am examining the feasibility of developing an application where ServiceMix
> would be used as an internal ESB, but all configuration would be performed
> through a user interface which I (we) would develop.
>
> This would require the ability to create, update and remove Camel routes to
> a remote instance(s) of ServiceMix.  Is this possible?  How would it be
> achieved?
>

Camel offers JMX API which you can use to do this.
That is most likely the easiest.

There is a MangedCamelContext which has APIs for adding new routes
from an XML source
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.html

And you can stop and remove routes using the ManagedRoute mbean
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/api/management/mbean/ManagedRouteMBean.html


Alternatively then the CamelContext is exported into the OSGi service
registry. So maybe somehow you can use dosgi to get access
to a remote CamelContext which also has API for adding/removing routes.



> I'm obviously not asking for a full solution - that's my job.  But some
> helpful pointers as to how this might be accomplished would be highly
> appreciated.  I'm not afraid to develop code - maybe even a decent amount of
> code - but I don't want to do anything outside ordinary ServiceMix usage.
>
> Thanks in advance for any help.
>
>
>
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Programatically-deploy-new-Camel-routes-to-remote-ServiceMix-instance-tp5561570p5561570.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to