Hi,
Is the use of Apache Camel & Sonic MQ supported/advocated?
I have recently switched over from using Active MQ to Sonic MQ and am finding that my camel route's dont work with Sonic MQ.
In particular a route that unmarshall's xml and uses Jaxb to push pojo's onto a queue fails when taking objects off the queue as the message content is seen as a byte array.
Looking at the Sonic MQ Documentation it does support object messages as per the JMS Specification but I am wondering if using Apache Camel in this way is not supported.
thanks
Paul.
The standard message mapping that Camel does between body types and JMS message types should work with SonicMQ. You may want to check that you don't have the mapJmsMessage option disabled, it it is Camel will not try to map the received JMS message.
Thanks Ronald,
The mapJmsMessage property (which I hadnt explicitly set) defaults to true.
I found I had to add converters to my route and then I was finding the correct message body class when I subsequently take the message off the queue.
Thanks for your help
Paul.