Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Routing in ActiveMQ

Tags:

jms

activemq

I have a following scenario:

Producer P produces messages posts all of them to AMQ 'A' (which is local to 'P').

Is it possible for me to route the messages from ActiveMQ A to remote Active MQs B or C?

Basically Iam looking for filters in 'A' side configuration to route these messages.

Thanks in Advance, Madhav

Gaurav,

What I mean is I have 3 instances of activeMQs at location A, B and C respectively, I have a producer bean 'P' in location A which locally places the messages in AMQ instance @A, locally because I relieve the headache of connection maintenance(lessen) and probability of message loss in 'P' if I were to connect to AMQ instances B or C remotely.

like image 707
Madhav Avatar asked Nov 04 '22 15:11

Madhav


1 Answers

if you want to interconnect the 3 brokers, then just create a network of brokers out of them...then producers and consumers can connect to any broker and messages can flow to the appropriate broker based on demand, etc.

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

like image 184
Ben ODay Avatar answered Nov 15 '22 13:11

Ben ODay