You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2009/12/02 17:10:00 UTC

Two routes with InOut - jms ??

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

Re: Two routes with InOut - jms ??

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