[英]One socket connection per cluster
I have an webapp built with Jboss Seam, which runs on cluster Jboss EAP. 我有一个用Jboss Seam构建的webapp,它在集群Jboss EAP上运行。 Webapp have a client library , which should stay connected with server for receiving events.
Webapp具有一个客户端库 ,该客户端库应与服务器保持连接以接收事件。 When event arrived from client, it fires JMS message.
当事件从客户端到达时,它将触发JMS消息。 The question is how can I achieve only one client connection per cluster(to avoid JMS message duplication) in this environment?
问题是在这种环境下如何才能在每个群集中仅实现一个客户端连接(以避免JMS消息重复)?
Possibly Clustering Singleton Services might work for your problem. 可能将Singleton Services群集可能会解决您的问题。 See reference https://docs.jboss.org/jbossas/docs/Clustering_Guide/4/html/ch05s11.html
参见参考https://docs.jboss.org/jbossas/docs/Clustering_Guide/4/html/ch05s11.html
For a more details reference, see https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Development_Guide/Implement_an_HA_Singleton.html 有关更多详细信息,请参见https://access.redhat.com/documentation/zh-CN/JBoss_Enterprise_Application_Platform/6/html/Development_Guide/Implement_an_HA_Singleton.html
Hope that helps 希望能有所帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.