In a processor I have code similar to this:

Car car = new Car();
List<Car> cars = new ArrayList<Car>();
cars.add(car);

exchange.getOut().setBody(cars, List.class);

The exchange goes to a jms queue that is processed in another processor. But
calling exchange.getIn().getBody() in this processor returns a string (seams
like the toString method of the list is called) instead of the list.

What should be done, so the message body remains a list when inspected in
the next processor?

Thank you,




--
View this message in context: 
http://camel.465427.n5.nabble.com/Setting-exchange-out-body-tp5744737.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to