Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们使用 Message 或 Exchange 来设置出站消息。这些提供的唯一方法是
交换.getOut.setBody();
如果我做类似 setBody(new Object()).. 它不起作用
那么我们如何通过骆驼交换发送java对象。
将有效负载设置为 new Object() 仅意味着您发送一个空对象。如果你想要序列化对象,那么你的对象必须是可序列化的,例如实现 java.io.Serializable
之后您将消息发送到哪里?