camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Help creating a route amq1-->bean-->amq2 - with timeouts
Date Sun, 13 Nov 2011 15:58:50 GMT
Hi

If you do request/reply over JMS then read the JMS wiki page
http://camel.apache.org/jms

There is a requestTimeout option which defaults to 20000 millis = 20 sec.


On Sun, Nov 13, 2011 at 1:05 AM, mattmadhavan <mattmadhavan@yahoo.com> wrote:
> Hi Christian,
> Thank you very much for the reply! I appreciate it.
>
> I have couple of more questions please!
> /
> I send receive the message as follows:/
>  Transfer reply = (Transfer) template.requestBody("activemq:TestHarness.A",
> transfer);
>
> on the oneMessage method of the bean, I think I should just return a value
> rt?
>
> public Object onMessage(Object obj) {
>    Transfer transfer = (Transfer) obj;
>     do some wotk
>
>    return transfer;
> }
>
> Will it work with the above configuration you sent?
>
> Also while testing the onMessage call may take long time to return! How can
> I specify a timeout value more than the default 20000 milli secs?
>
> I appreciate your help in advance!
>
> Thanks
> Matt
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Help-creating-a-route-amq1-bean-amq2-with-timeouts-tp4986086p4987824.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



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

Mime
View raw message