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



--
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.

Reply via email to