You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by marnold <ma...@gmail.com> on 2012/03/13 17:39:41 UTC
Programatically deploy new Camel routes to remote ServiceMix
instance
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?
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.
Re: Programatically deploy new Camel routes to remote ServiceMix instance
Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Mar 13, 2012 at 5:39 PM, marnold <ma...@gmail.com> 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: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
Re: Programatically deploy new Camel routes to remote ServiceMix instance
Posted by Łukasz Dywicki <lu...@code-house.org>.
Hey,
The Karaf WebConsole is able to track different things and manage OSGi environemnt. One thing we miss is dynamic route creation. That's something out of scope for now because requires lots of UI work to get modeller. If you are interested in that, I am more than happy to help you.
Best regards,
Lukasz
Wiadomość napisana przez Jean-Baptiste Onofré w dniu 13 mar 2012, o godz. 20:58:
> Hi,
>
> Camel already provides a web interface.
>
> I think that you should take a look on the Karaf WebConsole project.
>
> It's a very extendable web console based on wicket/pax-wicket. You can create your own extension. We already have extension for JBI, Camel, ActiveMQ (and Karaf itself of course).
>
> Regards
> JB
>
> On 03/13/2012 05:39 PM, marnold 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?
>>
>> 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.
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Re: Programatically deploy new Camel routes to remote ServiceMix
instance
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
Camel already provides a web interface.
I think that you should take a look on the Karaf WebConsole project.
It's a very extendable web console based on wicket/pax-wicket. You can
create your own extension. We already have extension for JBI, Camel,
ActiveMQ (and Karaf itself of course).
Regards
JB
On 03/13/2012 05:39 PM, marnold 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?
>
> 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.
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com