camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Need help
Date Sat, 16 Aug 2014 00:20:17 GMT
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.

   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
        // enable hangup support allows Camel to detect when the JVM is terminated
        // run and block until Camel is stopped (or JVM terminated);

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.

View raw message