Hi, If you just want to validate the transformed message in unit test, you can replace the endpoint of IBM MQ with the mock endpoint.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Thursday, August 15, 2013 at 3:42 AM, nanotech wrote: > Hi, > > I have the following use case. > > Write a JUnit test( using CamelTestSupport ) to validate the transformation. > > 1. Send message ( xml ) to IBM MQ > 2. Transformation Engine Reads message from queue and drops the transformed > message to another queue. > 3. Read the Transformed message (fixed width ) and compare it with POJO > (i.e. using Camel bindy ) > > I have looked at various examples at this forum and I am able to send > messages ( from File to IBM MQ), from where the transformation Engine picks > up the message and Transforms the message to another format and drops it on > another queue. > > Now the question is, > -- How do I read back the message from IBM MQ, ? > -- Do I need to route the message to mock endpoint also, or will the above > scenario work ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Reading-and-marshalling-messages-from-IBM-MQ-Bindy-tp5737266.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).