Use tracer and check what the JMSReplyTo is set to. It should be InOut MEP.

On Wed, Dec 2, 2009 at 5:10 PM, Charles Moulliard <[email protected]> wrote:
> The following route works fine :
>
>    <bean id="reportIncidentService"
> class="org.apache.camel.example.reportincident.restful.ReportIncidentService"
> />
>    <bean id="restProcessor"
> class="org.apache.camel.example.reportincident.routing.RestFullProcessor"/>
>
>    <cxf:rsServer id="rsServer" address="/camel-rest-example/"
>
> serviceClass="org.apache.camel.example.reportincident.restful.ReportIncidentService"
> />
>
>    <camel:camelContext trace="true"
>        xmlns="http://camel.apache.org/schema/osgi";>
>
>        <camel:route>
>            <camel:from uri="cxfrs:bean:rsServer" />
>            <camel:bean ref="restProcessor" method="processRequest"/>
>        </camel:route>
>    </camel:camelContext>
>
> but when I try to use in between a jms queue the exchange.getOut().setBody()
> defined in the method processRequest is never returned to the camel cxfrs
> endpoint
>
>        <camel:route>
>            <camel:from uri="cxfrs:bean:rsServer" />
>            <camel:to uri="jms:queue:in" />
>        </camel:route>
>
>        <camel:route>
>            <camel:from uri="jms:queue:in"/>
>            <camel:bean ref="restProcessor" method="processRequest"/>
>        </camel:route>
>
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
> twitter : http://twitter.com/cmoulliard
> Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>
> Apache Camel Group :
> http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to