Can you please share the route details ? Did you refer the following link ?
http://camel.apache.org/activemq-camel-tomcat.html -Ravi ________________________________________ From: mikes300 [[email protected]] Sent: Saturday, July 19, 2014 8:16 AM To: [email protected] Subject: Camel automatic route triggers upon server startup I have routes in the java DSL that grab messages from a queue and do things, which works fine if I instantiate the class with the route in it, and it runs it once. What I need is a way to run routes in my appserver (Wildfly in this case), which just sit & pick up messages from a queue from(JMS:queue:ROUTINGQUEUE), but not just once, need it to "listen" for this all the time, picking up messages & processing them as they come in. I have looked into the Quartz & polling variants but it still doesn't seem like it would do the trick, am I missing something here? Seems like it is a pretty simple requirement. I even set up a ServletContextListener to "pre"-instantiate the route class upon loading up the context, which it did, but then it just runs once and you're done. Need it to keep looking at that queue for messages as they come in all day long. Or to that end, even just somehow constantly create/destroy the routing class all day long but that seems wasteful? I'm a newbie but I have done a lot of homework today to try to get this figured out. Want to avoid having to put the message and instantiate the route object via some other message. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-automatic-route-triggers-upon-server-startup-tp5754022.html Sent from the Camel - Users mailing list archive at Nabble.com. 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.
