How to send serialized java objects via apache camel?
We use Message or Exchange to set the outbound message . the only met开发者_如何学Chod these provide is
exchange.getOut.setBody();
if i do something like setBody(new Object())..it doesn't work
so how do we send java objects via camel exchange.
And setting a payload as new Object() just means you send an empty object. And if you want serialized objects, then you object must be serializable such as implementing java.io.Serializable
And where do you route the message afterwards?
精彩评论