On Wed, Oct 31, 2012 at 4:57 PM, sushil_vsk5 <sushil_v...@yahoo.co.in> wrote:
> Hello:
>
> I am trying to use a Bean component in my Route for constructing the
> response for an InOut exchange which starts from a JMS Queue. My Route looks
> like below
>
> from("jms:testQ").bean(MockBean.class);
>
> If I assume that X is my input java object and Y is my output java object,
> then my MockBean looks like this
>
> public class MockBean(){
>   public Y transform(X x){
>     return new Y();
>   }
> }
>
> I can also see from the Camel logs that the Bean Processor is correctly
> setting Y to the Out message
> 'Setting bean invocation result on the OUT message - Y'
>
> But alas I always end up getting X on my reply queue which is my original
> request not my response. Am I missing something here?
>
> Regards,
> Sushil
>

What version of Camel are you using?


>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Bean-Component-Behaviour-in-case-of-an-InOut-exchange-tp5721888.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to