Hi Justin, Thanks for responding, in my scenario; I have created a cluster of 2 activemq instances (active/active). Both are on physically different nodes but they are running in cluster. Now, for normal queues; redistribution is happening properly. But I read this description about diverts
*A divert will only divert a message to an address on the same server. If you want to divert to an address on a different server, a common pattern would be to divert to a local store-and-forward queue, then set up a bridge that consumes from that queue and forwards to an address on a different server.* As per my understanding of the above paragraph, messages sent to the destination of a divert will endup on the same activemq instance. They won't be *redistributed *even if a consumer is present on another node. A bridge has to be set up for this. If my understanding is correct, I just wanted to know, if there is some generic mechanism that can be implemented to achieve the same. So that we dont have to set up a separate bridge for each queue. Regards, Prateek Jain -------------------------------------------------------------- EXPECTATION : Causes all troubles...... -------------------------------------------------------------- On Mon, Jun 12, 2023 at 3:35 PM Justin Bertram <jbert...@apache.org> wrote: > I don't understand how divert behavior and message redistribution are > related in your use-case. Can you elaborate on this? > > > Justin > > On Sun, Jun 11, 2023 at 5:54 AM prateekjai...@gmail.com < > prateekjai...@gmail.com> wrote: > > > Hi All, > > > > I have a question on the behavior of diverts in activemq. Here is what I > > read in documentation: > > > > *A divert will only divert a message to an address on the same server. If > > you want to divert to an address on a different server, a common pattern > > would be to divert to a local store-and-forward queue, then set up a > bridge > > that consumes from that queue and forwards to an address on a different > > server.* > > > > My query is, if we have a cluster setup where message re-distribution is > > happening between activemq nodes. What is the expected behavior? Will the > > messages get routed to nodes where consumers are attached or they endup > on > > the same server/node? > > > > In my case, I see that routing is not happening. Anything that can be > done > > in a generic way which would enable redistribution for all diverts in the > > same cluster? > > > > Regards, > > Prateek Jain > > > > -------------------------------------------------------------- > > EXPECTATION : Causes all troubles...... > > -------------------------------------------------------------- > > >