1

我有以下问题:我可以访问 ActiveMQ 代理 A 的 transportConnector。假设 uri 是 tcp://123.123.123.123:61616。我需要在另一个 ActiveMQ 实例上设置代理 B,以便将所有消息从代理 A 转发到 tcp://0.0.0.0:61616 并从 tcp://0.0.0.0:61616 转发到代理 A。

如果可以在不更改代理 A 的配置的情况下执行此操作?如果是,那么请向我提供有关如何执行此操作的说明。

4

2 回答 2

3

The previous answer is incorrect, you can initiate the network connection from Broker B to Broker A. As long as Broker A has not disabled advisory messages, then you can subscribe to topics/queues that originated on Broker A, on Broker B.

Simply define a network connector with duplex="true"

The "access to transportConnector" is the key bit. If you can connect to the broker, you can have it's messages forwarded to another broker.

于 2014-07-14T21:23:10.070 回答
0

不,如果不更改 Broker A 的配置,就不可能将消息从 Broker A 转发到 Broker B。您需要定义一个networkConnector来转发消息。

于 2013-07-12T09:17:56.560 回答