qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Hebert" <Antoine.Heb...@Ticketmaster.com>
Subject RE: Cluster/failover
Date Fri, 19 Jun 2009 14:53:50 GMT
Thanks for the quick response Rafael,

I tried to add &failover='roundrobin?cyclecount='20'' but it didn't do
the trick. I still experience the same issue.

I'll try to grab a JAVA failover example somewhere.

-- Antoine

-----Original Message-----
From: Rafael Schloming [mailto:rafaels@redhat.com] 
Sent: Thursday, June 18, 2009 2:11 PM
To: users@qpid.apache.org
Subject: Re: Cluster/failover

Antoine Hebert wrote:
> Hi, I'm pretty new to Java and to JMS as well, I want to perform Qpid 
> clustering and failover tests. I searched the documentation and I'm 
> not sure I do things properly. I use the C++ broker with Java clients.
> 
> First I have two boxes with Qpid:
> - boxA inet addr: 192.168.1.204 mask: 255.255.255.0
> - boxB inet addr: 192.168.1.96 mask: 255.255.255.0
> 
> So I set /etc/ais/openais.conf totem.interface.bindnetaddr = 
> 192.168.1.0
> 
> I have two other boxes to use for a publisher/subscriber test. I use 
> the following setting:
> 
> connectionfactory.qpidConnectionfactory=amqp://guest:guest@clientid/te
> st ?brokerlist='tcp://192.168.1.204:5672;tcp://192.168.1.96:5672'

Try adding &failover='roundrobin?cyclecount='20'' to your URL:

connectionfactory.qpidConnectionfactory=amqp://guest:guest@clientid/test
?brokerlist='tcp://192.168.1.204:5672;tcp://192.168.1.96:5672'&failover=
'roundrobin?cyclecount='20''

--Rafael


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

CONFIDENTIALITY NOTICE:

This message contains information which may be confidential or privileged.  If you are not
the intended recipient, be aware that any disclosure, copying, distribution or use of the
contents of this information is prohibited.  If you have received this transmission in error,
please notify me immediately by telephone.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Mime
View raw message