开发者

Subscribing to Multiple Topics in JMS

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜