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: Why this route times out ?
Date Wed, 30 Jul 2014 08:34:59 GMT
You are doing request/reply over JMS (eg InOut). If you just want to
send a message, then use InOnly.

Depends how you send from your ben. But if you use producer template,
then use the send for InOnly, and request for InOut.

On Wed, Jul 30, 2014 at 10:30 AM, Frankiboy <mail.to.frankj@gmail.com> wrote:
> This line returns a String .....   .bean(LogMq.class, "logStart")
>
> I want to create a String that goes in the MQ, i want to do that in a bean,
> the string is create from headers an other information.
>
> Can anyone give me a Hint, what way i schould go
>
>
>    from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching()
>       .setHeader("BD", constant("YES"))
>       .setHeader("JMS_IBM_Format", constant("MQSTR"))
>       .bean(LogMq.class, "logStart")
>       .to("activemq:topic:HUB_TOP01");
>
>  I get an exception:
>
> used by: org.apache.camel.ExchangeTimedOutException: The OUT message was not
> received within: 20000 millis due reply message with correlationID:
> Camel-ID-BDD03240-52050-1406708494957-0-3 not received. Exchange[Message:
> Frank was here from LogMq]
>
> Frank
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Why-this-route-times-out-tp5754623.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message