Hello Claus,
I googled some more and also found this example on Stackoverflow:
http://stackoverflow.com/questions/9078621/controlling-start-up-and-shutdown-of-camel-routes
The accepted answer drains a queue. This is exactly what I want, only
not triggered by a timer, but by sending a message to a
No the jms component takes one message at a time.
You need to stop it manually or let it keep running even if the queue is empty,
or figure out if the queue is empty and then stop the route.
On Thu, Nov 28, 2013 at 10:19 PM, Michiel Borkent
wrote:
> Hello Claus,
>
> Thanks for your answer. This
Hello Claus,
Thanks for your answer. This sounds simpler than I thought.
Just to be sure, is it safe to assume that
Given: there is a route A -> B that is not auto started and has the
ShutdownStrategy ShutdownRunningTask.CompleteAllTasks
When there are X messages at queue A
and the route is tu
You can just have a Camel route that is from -> to and use the vm
transport of the broker if using the embedded broker in the same jvm.
Then you can start|stop the route using JMX or using the shell with
the camel:start-route | stop-route commands. Or use the web ui to do
that as well.
You can als
Btw, the transaction has just to be around one message, not all the messages.
--
View this message in context:
http://camel.465427.n5.nabble.com/Delivering-messages-from-one-activemq-to-another-transactionally-triggered-by-mbean-tp5744049p5744050.html
Sent from the Camel - Users mailing list ar