THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
// lets turn Object messages into XML then send to MQSeries from("activemq:My.Queue"). marshal().xstream(). to("mqseries:Another.Queue"); |
If you would like to configure the XStream
instance used by the Camel for the message transformation, you can simply pass a reference to that instance on the DSL level.
Code Block |
---|
XStream xStream = new XStream();
xStream.aliasField("money", PurchaseOrder.class, "cash");
...
from("direct:marshal").
marshal(new XStreamDataFormat(xStream)).
to("mock:marshaled");
|
XMLInputFactory and XMLOutputFactory
...