Newbie alert: I am looking at Camel as a method to add better workflow/routing behaviors to a system that uses Spring, ActiveMQ, and Jencks to have POJOs consume and send JMS messages.
I read that a bean cannot be used as input. However, I am wondering why the return from a bean method cannot be sent to a destination? It would be nice to have Camel call a bean method based on the contents of a message from a JMS queue. It would also be nice to have the response from the method get send to another queue based on some configuration without having to explicity use a Template send method. It would also be nice to be able to route to a queue based on the contents of the response and route to a different location if the an exception is thrown instead of a normal response (and route based on the exception thrown). Is there anything in Camel that allows this currently? I suppose I could write a proxy to wrap around beans and send JMS messages based on method returns. However, it would be great if Camel already did this and had the routing logic to allow a basic type of workflow across JMS queues. -- View this message in context: http://www.nabble.com/Sending-Return-From-Bean-Method-To-Queue-tp16533420s22882p16533420.html Sent from the Camel - Users mailing list archive at Nabble.com.
