You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ranjan santa <ra...@bluewin.ch> on 2007/11/08 15:04:11 UTC

Configure ActiveMQ as a broker and a bridge at the same time

Hi

I am putting messages in a queue and forward them over two bridges in a row
to a broker, all ActiveMQ instances on different machines. This works well.

But also I want to send messages back on another queue. So as I understand,
I have to configure the broker also as a bridge, the middle bridge to
forward in the other direction and the first bridge to be a broker too.

This is not working, the messages are not beeing forwarded from the other
end. I am not sure if this is the right way to do this.
Are there any suggestions?
Thanks, Ranjan
-- 
View this message in context: http://www.nabble.com/Configure-ActiveMQ-as-a-broker-and-a-bridge-at-the-same-time-tf4771076s2354.html#a13647524
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Configure ActiveMQ as a broker and a bridge at the same time

Posted by ranjan santa <ra...@bluewin.ch>.
Actually I can't use a snapshot version, so v5 is not really a possibility.

The consequences of your answer are following:
It is not possible to consume messages from a bridge (which means, the
bridge can't act as a broker), depending on the inbound queue.
It is not possible to configure forwarding messages to different brokers
from a bridge, depending on the inbound queue.

Can you confirm that?
-- 
View this message in context: http://www.nabble.com/Configure-ActiveMQ-as-a-broker-and-a-bridge-at-the-same-time-tf4771076s2354.html#a13651782
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Configure ActiveMQ as a broker and a bridge at the same time

Posted by ttmdev <jo...@ttmsolutions.com>.
By default, a forwarding bridge does not support message flow in both
directions. However, if you're using a relatively recent AMQ 5.0 SNAPSHOT,
you can override this default behavior by setting the networkConnector
element's 'duplex' attribute to true as follows. This will create a two-way
or full-duplex bridge.  

<networkConnector uri="static:(tcp://localhost:61617)">
           name="duplexbridge"
           duplex="true"                  	      	
</networkConnector> 

Hope this helps 
 


ranjan santa wrote:
> 
> Hi
> 
> I am putting messages in a queue and forward them over two bridges in a
> row to a broker, all ActiveMQ instances on different machines. This works
> well.
> 
> But also I want to send messages back on another queue. So as I
> understand, I have to configure the broker also as a bridge, the middle
> bridge to forward in the other direction and the first bridge to be a
> broker too.
> 
> This is not working, the messages are not beeing forwarded from the other
> end. I am not sure if this is the right way to do this.
> Are there any suggestions?
> Thanks, Ranjan
> 

-- 
View this message in context: http://www.nabble.com/Configure-ActiveMQ-as-a-broker-and-a-bridge-at-the-same-time-tf4771076s2354.html#a13647924
Sent from the ActiveMQ - User mailing list archive at Nabble.com.