ActiveMQ Routing

I have the following script:

Producer P creates messages that put all of them in AMQ 'A' (which is local to P).

Is it possible for me to send messages from ActiveMQ A to remote active MQ B or C?

I am mainly looking for filters in the lateral configuration ā€œAā€ for routing these messages.

Thanks Advance, Madhava

Gaurav,

I mean that I have 3 activeMQ instances at locations A, B and C respectively. I have a bean producer 'P' at location A that locally places messages on an AMQ instance of @A locally because I relieve the headache of connection maintenance (decrease) and the chance of losing a message in ā€œPā€ if I have to connect to instances AMQ B or C remotely.

+4
source share
1 answer

if you want to connect 3 brokers, and then just create a network of brokers from them ... then manufacturers and consumers can connect to any broker and messages can contact the appropriate broker upon request, etc.

otherwise, if you want more explicit control, you can use Camel to perform basic (or complex) routing from brokerA queues for the B / C broker using separate connection factories, etc.

+2
source

Source: https://habr.com/ru/post/1435290/


All Articles