You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by tapdur <ta...@gmail.com> on 2013/12/07 00:21:05 UTC

stupid pipeline question

hi all

when i use a route with cxfEndpoint like this it works fine

<route>
  <from uri="cxf:bean:routerEndpoint" />
  <to uri="cxf:bean:CIM-BIE-MOCK" />
</route>
the to response is well returned in the grom response. 

however, if i want to insert a mapper before and/or after the to uri i lost
the body, why  ???

<route>
  <from uri="cxf:bean:routerEndpoint" />
   <convertBodyTo type="com.a.request" />

  <to uri="cxf:bean:CIM-BIE-MOCK" />

   <convertBodyTo type="com.a.response"

</route>

may i use transform ? to return a com.a.response to the from messasge ?


thx a lot

bruno




--
View this message in context: http://camel.465427.n5.nabble.com/stupid-pipeline-question-tp5744415.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: stupid pipeline question

Posted by Willem Jiang <wi...@gmail.com>.
Can you double check if the message body can be converted rightly?
I think you can enable the trace[1] and check the log to see what is wrong.

[1]http://camel.apache.org/tracer.html

-- 
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
          http://jnn.iteye.com (Chinese)
Twitter: willemjiang 
Weibo: 姜宁willem


On December 7, 2013 at 7:21:33 AM, tapdur (tapdur75@gmail.com) wrote:
>
>hi all
>
>when i use a route with cxfEndpoint like this it works fine
>
>
>
>
>
>the to response is well returned in the grom response.
>
>however, if i want to insert a mapper before and/or after the to uri i lost
>the body, why ???
>
>
>
>
>
>
>
>>
>
>
>may i use transform ? to return a com.a.response to the from messasge ?
>
>
>thx a lot
>
>bruno
>
>
>
>
>--
>View this message in context: http://camel.465427.n5.nabble.com/stupid-pipeline-question-tp5744415.html
>Sent from the Camel - Users mailing list archive at Nabble.com.
>


Re: stupid pipeline question

Posted by tapdur <ta...@gmail.com>.
It is dozer mapping 




--
View this message in context: http://camel.465427.n5.nabble.com/stupid-pipeline-question-tp5744415p5744425.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: stupid pipeline question

Posted by Christian Müller <ch...@gmail.com>.
How does the type converter looks like?

Best,
Am 07.12.2013 00:21 schrieb "tapdur" <ta...@gmail.com>:

> hi all
>
> when i use a route with cxfEndpoint like this it works fine
>
> <route>
>   <from uri="cxf:bean:routerEndpoint" />
>   <to uri="cxf:bean:CIM-BIE-MOCK" />
> </route>
> the to response is well returned in the grom response.
>
> however, if i want to insert a mapper before and/or after the to uri i lost
> the body, why  ???
>
> <route>
>   <from uri="cxf:bean:routerEndpoint" />
>    <convertBodyTo type="com.a.request" />
>
>   <to uri="cxf:bean:CIM-BIE-MOCK" />
>
>    <convertBodyTo type="com.a.response"
>
> </route>
>
> may i use transform ? to return a com.a.response to the from messasge ?
>
>
> thx a lot
>
> bruno
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/stupid-pipeline-question-tp5744415.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>