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.
我有一个程序需要在多实例下进行通信。就像一个实例从数据库加载了一个对象,其他实例就会使用它们。
J-groups 中实现 Receiver 的 getState 和 setState 只支持一个对象进行通信.. 有没有办法在实例之间进行通信
是的,类的send()方法就是这样Channel做的。您可以将消息发送到集群的每个节点或仅发送到特定节点。
send()
Channel