JBoss 5.X集群,如何发送多播消息?
我在一个集群中有 2 个 JBoss (5.1.0 GA) 实例,还有一个 Apache 2.2 mod jk 来进行平衡。它们工作正常,会话被正确复制。
我想做的是:为集群中的所有 JBoss(节点)发送一条消息(可以是多播消息),以执行自定义操作,例如将某些对象从数据库重新加载到内存。
有人对我有建议吗,我该怎么做?
干杯,
托马斯
I've 2 instances of JBoss (5.1.0 GA) in a cluster and an Apache 2.2 mod jk to do the balance. They are working fine, the sessions are replicated correctly.
What I'd like to do is: Send a message (could be a multicast message) for all JBoss (nodes) in my cluster, to do a custom operation, for example to reload some objects from database to a memory.
Does anyone have a suggestion for me, how can I do this?
Cheers,
Thomas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在尝试主题制作人和MDB 作为每个节点上的主题订阅者...
但它不起作用,因为节点邮局不是集群之一。
我将 jboss 节点邮局更改为集群
,现在我开始在所有节点上收到通知,这表明我要更新缓存。
I was trying the topic producer & MDBs as topic subscriber on each node...
But It was not workingas the nodes post office was not clustered one.
I change jboss nodes post office to clustered as
and now I start getting notification on all nodes, which signals me to update the cache.