문제

We use Message or Exchange to set the outbound message . the only method 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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top