It looks like your main process is terminating after consuming the message.

If you are using spring dsl, here is how you can keep it running for ever. Main 
referred here is org.apache.camel.spring.Main.

Refer here for more detailed explanation.

http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html



   public static void main(String[] args) throws Exception {
        // Main makes it easier to run a Spring application
        Main main = new Main();
        // configure the location of the Spring XML file
        main.setApplicationContextUri("META-INF/spring/camel-routes.xml");
        // enable hangup support allows Camel to detect when the JVM is 
terminated
        main.enableHangupSupport();
        // run and block until Camel is stopped (or JVM terminated)
        main.run();
    }


-Ravi
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.

Reply via email to