You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Frankiboy <ma...@gmail.com> on 2014/07/30 10:30:22 UTC

Why this route times out ?

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.

Re: Why this route times out ?

Posted by Frankiboy <ma...@gmail.com>.
Works i get my String messages to MQ, with inOnly, but throwing an exception
before starting my last route  "direct:channel2" ..

Caused by: org.apache.cxf.binding.soap.SoapFault: Exception occurred during
execution on the exchange: Exchange[Message: Frank was here from LogMq]  


      from("cxf:bean:hubws?dataFormat=MESSAGE").streamCaching() 
      .onException(Exception.class).process(new LogError()).end() 
      .to("direct:channel1", "direct:channel2");  
        
       from("direct:channel1")
      .setHeader("BD", constant("YES"))
      .setHeader("JMS_IBM_Format", constant("MQSTR"))
      .bean(LogMq.class, "logStart")
      .inOnly("activemq:topic:HUB_TOP01");
             
       from("direct:channel2") 
      .bean(AddIpBean.class) 
      .recipientList().method(Util.class, "getEndpoint");



--
View this message in context: http://camel.465427.n5.nabble.com/Why-this-route-times-out-tp5754623p5754628.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Why this route times out ?

Posted by Claus Ibsen <cl...@gmail.com>.
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 <ma...@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/