开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜