Hi,
I am working on a switchyard project.
We have a requirement to add message to a delayed Queue.
I used the following code snippet in camel route to post the message to the
Queue.
from("switchyard://MyOwnCamelRoute")
.delay(10000).asyncDelayed()
.log("Received message for 'MyOwnCamelRoute' : ${body}")
.to("jms:MyQueue?connectionFactory=java:/ConnectionFactory")
The message is getting placed in the Queue only after the delay.
But the issue is that the call is not asynchronous.
The control comes back only after the delay.
Am I missing something here?
Please help.
Thanks
Anand
--
View this message in context:
http://camel.465427.n5.nabble.com/Asynchronous-delay-in-camel-route-tp5753057.html
Sent from the Camel - Users mailing list archive at Nabble.com.