开发者

JMS consumer with ActiveMQ network of brokers

I have a JMS topic on an ActiveMQ network of brokers cluster (aka distributed topic). I have an external JMS consumer (Weblogic portal) that needs to subscribe to this topic and get all the messages sent to it (across all brokers).

If the consumer subscribes to the topic on one of the brokers, it will only get the subset of the messages that the broker receives, correct?

I guess I could create a consumer for each broker and aggregate the messages together, but then I'm also on the hook for dealing with connection issues and needing to know which brokers are available, etc.

Question, is there a way to configure the network of br开发者_Python百科okers or consumer to get all the messages from a distributed JMS topic?


If the consumer subscribes to the topic on one of the brokers, it will only get the subset of the messages that the broker receives, correct?

Technically, yes, but the broker network is responsible for knowing which consumers are interested in which messages, and making sure that the right brokers get the right messages.

Normally, this means that every broker gets every message, but if a broker only has consumers with a given message selector, it will only get messages that those clients are interested in.

In practise, this means you pick a broker, connect to it, and let the broker network sort it out amongst themselves. In theory.


You just connect to the cluster. It is up to the cluster to deliver the messages to the consumer.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜