Re: Setting exchange out body

2013-12-13 Thread johndoe1
It seams like the jmsConfiguration for the component has the message type set to text: jmsConfiguration.setJmsMessageType(JmsMessageType.Text); Probably this explains why the body of the exchange is received as text. Is there a way to override the message type on a per message (or per endpoint) ba

Setting exchange out body

2013-12-13 Thread johndoe1
In a processor I have code similar to this: Car car = new Car(); List cars = new ArrayList(); 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 st