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 Christi
Hi I have created a class by extending ServiceSupport.
And I'm staring my program with the following code.
public static void main(String... args) throws Exception {
AbstractApplicationContext applicationContext = new
ClassPathXmlApplicationContext(
"cla
So that class implements the boiler plate code for lifecycle management
(start, stop, suspend, resume, isStarting, isStopping, etc).
If you want to have one of your custom classes managed by camel, you can
register it as a "service" by Implementing Service.java (or extending
ServiceSupport) and ca