开发者

Subscribing to Multiple Topics in JMS

开发者 https://www.devze.com 2023-02-15 05:37 出处:网络
I am working on a distributed storage project. I am implemented it using Java EE. In my storage objects are replicated at multiple servers and in case of any update at a server, i need to propagate th

I am working on a distributed storage project. I am implemented it using Java EE. In my storage objects are replicated at multiple servers and in case of any update at a server, i need to propagate the same to other replicas.

What is the best way to implement the same?

Currently i am thinking of using JMS pub/sub to make my communication asynchronous. But since each server is responsible for multiple objects i need to subscribe it with multiple topics (that can be change开发者_运维问答s dynamically).

Please let me know if its possible in JMS.


I think you can use JMS destination wildcards. As I know, most JMS compatible products like Apache ActiveMQ, Tibco EMS support such feature.

The usage in ActiveMQ: http://activemq.apache.org/wildcards.html.

0

精彩评论

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