People do what you're trying to do, so this is a use case that works (or at
least, did work at some point in the past).

My advice when message forwarding isn't working in a network of brokers is
to use JMX to figure out what's going on in each broker. I'd start with the
proxy broker and confirm that a subscriber representing the main broker is
created on your topic. If you don't see it, then something is wrong with
how your statically included destinations are being applied. If you do, see
if the JMX stats indicate that messages are being dispatched to it. Then
check the same things on the main broker, except that the consumer is your
actual consumer.

Since you've programmatically disabled JMX, you'll need to enable it to be
able to do those things.

BTW, why are you statically including your destinations rather than doing
it dynamically with a wildcard? Seems like that would be a simpler
confirmation to implement and maintain.

Tim

On Jul 31, 2017 3:25 AM, "Mark Raynsford" <list+org.apache.activ...@io7m.com>
wrote:

> Hm, is anyone out there actually using ActiveMQ in this manner?
>
> The reason I'm doing this is that I'm considering deploying message
> brokers in a manner analogous to the way in which one would
> typically deploy mail servers: Programs on a server communicate with an
> MTA (such as Postfix or qmail) on the same machine, and that MTA acts
> as a dumb relay that simply sends all messages to a centrally
> administered MTA/MX. I'd deploy ActiveMQ instances on each server that
> simply send all of their messages on to a central ActiveMQ instance (or
> series of load-balanced instances).
>
> I've had a look at Artemis, and it seems like the "core bridging"
> configuration requires you to manually name the queues that you want
> forwarded:
>
>   https://activemq.apache.org/artemis/docs/2.1.0/core-bridges.html
>
> Given that Artemis seems to require you to specify queues to be
> forwarded, and given that plain ActiveMQ doesn't seem to want to
> forward messages no matter what I tell it, does this suggest that
> people don't typically deploy brokers in this way?
>
> --
> Mark Raynsford | http://www.io7m.com
>

Reply via email to