You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Alfred Hiebl <a....@mic-cust.com> on 2011/10/07 14:13:19 UTC

JMX Management

Hi,

We are running Camel in a webapp container, which allows us to bundle a
little admin webapp to configure and monitor the routes (among other stuff). 

Camel JMX support works great for a lot of this! But what I did not find so
far is this:
- sendBody in MBean org.apache.camel:type=context,name="camel" does not
support headers. Is there another way to start a route?
- Is there a way to create a new route through JMX?

I could do all this by exporting my own MBean (e.g. Spring MBeanExporter).
Not sure, though, how it would get access to CamelContext which I obiously
need to create routes?

Can someone give me a sample how this can be done or if these things can
already be done?

Thanks in advance,
Alfred

--
View this message in context: http://camel.465427.n5.nabble.com/JMX-Management-tp4879844p4879844.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMX Management

Posted by ahiebl <a....@mic-cust.com>.
The routes are defined using Java DSL. So I was looking for something like
camelContext.addRoutes(rb), just as a JMX operation that I can invoke on my
MBeanServer.

Thanks,
Alfred


--
View this message in context: http://camel.465427.n5.nabble.com/JMX-Management-tp4879844p4879903.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMX Management

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Oct 7, 2011 at 2:13 PM, Alfred Hiebl <a....@mic-cust.com> wrote:
> Hi,
>
> We are running Camel in a webapp container, which allows us to bundle a
> little admin webapp to configure and monitor the routes (among other stuff).
>
> Camel JMX support works great for a lot of this! But what I did not find so
> far is this:
> - sendBody in MBean org.apache.camel:type=context,name="camel" does not
> support headers. Is there another way to start a route?
> - Is there a way to create a new route through JMX?

Yeah there should be API to add/update routes from an XML description
of the routes.


>
> I could do all this by exporting my own MBean (e.g. Spring MBeanExporter).
> Not sure, though, how it would get access to CamelContext which I obiously
> need to create routes?
>
> Can someone give me a sample how this can be done or if these things can
> already be done?
>
> Thanks in advance,
> Alfred
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JMX-Management-tp4879844p4879844.html
> Sent from the Camel - Users 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/