1

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.

1
  • Could you paste your route and your custom classes performing processing/transformation? Commented Sep 29, 2010 at 9:45

1 Answer 1

3

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?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.