You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Matías Cobiella <ma...@yahoo.com> on 2007/02/12 17:39:12 UTC

SLAVE with same hostname and port like MASTER

Hi,

Is there some way that one Client connects to a SLAVE with the same hostname
and port of the MASTER host?

I mean. The Client connect to the MASTER (tcp://150.0.0.1:61616), when the
MASTER goes down, the SLAVE becomes MASTER but with the same url
(tcp://150.0.0.1:61616) and the Client failover to it.

Thanks in advance. 

Matías.
-- 
View this message in context: http://www.nabble.com/SLAVE-with-same-hostname-and-port-like-MASTER-tf3214835s2354.html#a8927685
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: SLAVE with same hostname and port like MASTER

Posted by Matías Cobiella <ma...@yahoo.com>.
Thanks, I know the failover URI's, but I need the behavior that I've
mentioned.




spiderman2 wrote:
> 
> Another way to solve your problem is to use the "failover://" URI.
> 
>  http://activemq.apache.org/failover-transport-reference.html See
> http://activemq.apache.org/failover-transport-reference.html 
> 
> for an example on how a consumer can fail from a master to a slave.
> 
> 
> Matías Cobiella wrote:
>> 
>> Hi,
>> 
>> Is there some way that one Client connects to a SLAVE with the same
>> hostname and port of the MASTER host?
>> 
>> I mean. The Client connect to the MASTER (tcp://150.0.0.1:61616), when
>> the MASTER goes down, the SLAVE becomes MASTER but with the same url
>> (tcp://150.0.0.1:61616) and the Client failover to it.
>> 
>> Thanks in advance. 
>> 
>> Matías.
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/SLAVE-with-same-hostname-and-port-like-MASTER-tf3214835s2354.html#a8928408
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: SLAVE with same hostname and port like MASTER

Posted by spiderman2 <sh...@bridgewatersystems.com>.
Another way to solve your problem is to use the "failover://" URI.

http://activemq.apache.org/failover-transport-reference.html See
http://activemq.apache.org/failover-transport-reference.html 

for an example on how a consumer can fail from a master to a slave.


Matías Cobiella wrote:
> 
> Hi,
> 
> Is there some way that one Client connects to a SLAVE with the same
> hostname and port of the MASTER host?
> 
> I mean. The Client connect to the MASTER (tcp://150.0.0.1:61616), when the
> MASTER goes down, the SLAVE becomes MASTER but with the same url
> (tcp://150.0.0.1:61616) and the Client failover to it.
> 
> Thanks in advance. 
> 
> Matías.
> 

-- 
View this message in context: http://www.nabble.com/SLAVE-with-same-hostname-and-port-like-MASTER-tf3214835s2354.html#a8927863
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: SLAVE with same hostname and port like MASTER

Posted by Marlon Santos <ms...@exist.com>.
Hi, 


AFAIK, binding 2 brokers with same uri will result in a bind exception
because the address is already used. And by the way, using failover is an
assurance that you will be connected to the slave when the master goes down
so there is no point in making the slave and master have the same uri.

Regards,
Marlon



Matías Cobiella wrote:
> 
> Hi,
> 
> Is there some way that one Client connects to a SLAVE with the same
> hostname and port of the MASTER host?
> 
> I mean. The Client connect to the MASTER (tcp://150.0.0.1:61616), when the
> MASTER goes down, the SLAVE becomes MASTER but with the same url
> (tcp://150.0.0.1:61616) and the Client failover to it.
> 
> Thanks in advance. 
> 
> Matías.
> 

-- 
View this message in context: http://www.nabble.com/SLAVE-with-same-hostname-and-port-like-MASTER-tf3214835s2354.html#a8940745
Sent from the ActiveMQ - User mailing list archive at Nabble.com.