On Mon, Dec 12, 2011 at 11:55 PM, mattmadhavan <[email protected]> wrote:
> Hello,
> I have been in out with this question for a while - Been pulled in different
> directions last few months - My apologies about it!
>
> Been spending some time on the Camel Book, starting to understand some basic
> concepts.
>
> I want to build a route that reads from a queue A invokes a method on a bean
> and send the reply to Queue B
>
> I see lots of examples like the following for inout!
>
>                *from("jms:incomingOrders").inOut("jms:validate");
>                from("jms:validate").bean(ValidatorBean.class);*
>
> But I do not have the option of
> *from("jms:incomingOrders").inOut("jms:validate");
> *
>
> I need some thing like the following: pick a message from a Queue invoke a
> method and send the reply from the method to another Queue!
>
> *from("jms:validate").bean(ValidatorBean.class
> /timeout=50000/).to(("jms:validateResult"))
> * Please note the timeout req above!
>

That would just be
from QUEUE
to BEAN
to ANOTHER_QUEUE


Do you want a timeout to trigger when invoking the bean?
Usually when you do to BEAN, then there is no timeout, and the
invocation is synchronous.
If you look for timeout, then take a look at the content enricher EIP.



> Any answer will be appreciated!
>
> Thanks in advance!
>
> Matt
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Basic-JMS-to-bean-In-Out-Router-Question-tp5069797p5069797.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to