camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel service start/stop
Date Wed, 28 Aug 2013 05:58:28 GMT
Hi

See also
http://camel.apache.org/lifecycle

If your class is used in a route as part of a process or bean then
Camel will manage its lifecycle (eg calling start/stop etc). And
enlist in JMX also.

Though if your bean is used outside Camel you need to handle this
yourself, for example as Christian said you can use addService method
on CamelContext to add it to Camel and it will then also manage its
lifecycle when Camel starts/stops.

If you want your bean to be in JMX. Then spring has a jmx exporter you
can use for that also.


On Tue, Aug 27, 2013 at 9:28 PM, kiranreddykasa <kirankumarrk@fss.co.in> wrote:
> Hi i would like to know how to use the following class
>
> http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/support/ServiceSupport.html
>
> how can I make my custom class so that it is managed by camel ??
>
>
>
> -----
> Regards
>
> kiran Reddy
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-service-start-stop-tp5738073.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message