Hi, The CamelContext will be running once started until the context is stopped. The example above is a rather trivial piece of main-line java code running from the command line.
If you would like the context to run with more control on the life-cycle, you need to either run it in a container (tomcat, karaf/servicemix, Application Server/ESB) or instrument a loop looking for a command line option to stop the main-line code and gracefully stop the running camel context. Cheers, Ashwin... ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant Red Hat http://www.redhat.com Blog: http://opensourceknowledge.blogspot.com --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-calling-a-simple-POJO-after-a-route-tp5725121p5725190.html Sent from the Camel - Users mailing list archive at Nabble.com.
