开发者

Multi object Communication between instances in J groups

开发者 https://www.devze.com 2023-03-20 07:40 出处:网络
I have a program which needs to communicate itself under Multi Instances. It like if a instance has loaded a object from DB, other instances would jus use them.

I have a program which needs to communicate itself under Multi Instances. It like if a instance has loaded a object from DB, other instances would jus use them.

The getState and setState in J-groups implementing Receiver supports only one object to communicate.. Is there s way to communica开发者_如何学JAVAte between the Instances


Yes, the send() method of the Channel class does that. You can send your message to every nodes of the cluster or just a specific node.

0

精彩评论

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