Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue while forwarding message through an activeMQ network

I'm facing problem whil connecting a network of ActiveMQ.

I have two scenarios :

S1 : My application is connected to a first activeMQ "A". And this activeMQ "A" is connected to an ActiveMQ "B" - This is the scenario which cause me some issues. S2 : My application is directly connected to the ActiveMQ "B".

In both case we are sending data to the same queue and of course we send the exactly same data. What is expected : when ActiveMQ "B" receive data it should respond on the same queue.

In scenario S1, the data is send by my application to the ActiveMQ "A" and then forwarded to the ActiveMQ "B" but this ActiveMQ "B" does not seems to response, the fact is ActiveMQ "A" does not receive data from ActiveMQ "B". This is my main problem and I can't figure out why it's not working because if I connect my application directly to the ActiveMQ "B" I receive data.

I've try to make a simple schema down there that explain S1 and S2.

Does anyone have already encountered this kind of problem ? Where should I look into to find the cause of the problem ?

enter image description here

EDIT : Some more details :

In activeMQ "A" I can see there are consumers (the column "Number of consumer" is equal to 5) however in activeMQ "B" there are no consumer (the column "Number of consumer" is 0) whereas it should be 5 as in active MQ "A". Any ideas ?

like image 736
Ashbay Avatar asked Nov 08 '22 21:11

Ashbay


1 Answers

maybe related with networkTTL config.(http://activemq.apache.org/networks-of-brokers.html)

In default config, message can go only one step in the network. If it go from A to B, it can't be back to A.

like image 83
Mobility Avatar answered Nov 15 '22 12:11

Mobility