camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From contactreji <contactr...@gmail.com>
Subject Re: ActiveMq-InOut: save exchange body
Date Thu, 24 Oct 2013 07:07:11 GMT
Hi

I had similar error while working with a webservice. The error was 
Timeout occurred after 20000 millis waiting for reply message

My code was like

 <route id="CopperInConcetrate_route_1">
        <from
uri="cxf:bean:mestobw_CopperinConcentrate?dataFormat=PAYLOAD"/>
        <convertBodyTo type="java.lang.String"/>
        <to uri="{{inboudQueueName}}"/>
    </route>
And it gave the above error


I change it to 

 <route id="CopperInConcetrate_route_1">
        <from
uri="cxf:bean:mestobw_CopperinConcentrate?dataFormat=PAYLOAD"/>
        *<setExchangePattern pattern="InOnly"/>*
        <convertBodyTo type="java.lang.String"/>
        <to uri="{{inboudQueueName}}"/>
    </route>

which indeed solved my problem!


This usually occurs when the MEP is INOUT. If you keep INOUT, make sure you
have the camel exchange in the last component of the route some valid value
which can be returned back. (Am talking from web service perspective)

It can be resolved by changing the MEP from INOUT to INONLY.

Cheers
Reji



--
View this message in context: http://camel.465427.n5.nabble.com/ActiveMq-InOut-save-exchange-body-tp5741975p5742116.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message