qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <rajib.x.majum...@barclays.com>
Subject Qpid JMS client side failover with broker federation
Date Mon, 08 Jul 2013 04:36:05 GMT
Hi All,

I am using qpid 0.22, JMS client and C++ broker.

I configured broker1 (5672) and broker 2 (5673) and created bi-directional dynamic routes
of "amq.direct" for these 2 brokers.

JMS Producer configured with amqp://guest:guest@clientid/test?failover='roundrobin?cyclecount='2''&brokerlist='tcp://localhost:5672?retries='2'&connectdelay='1000';tcp://localhost:5673?retries='2'&connectdelay='1000''

JMS Consumer configured with amqp://guest:guest@clientid/test?failover='roundrobin?cyclecount='2''&brokerlist='tcp://localhost:5673?retries='2'&connectdelay='1000';tcp://localhost:5672?retries='2'&connectdelay='1000''

When I killed broker 5672, produce didn't failover to 5673 and disconnected and I see an error:

javax.jms.JMSException: Exception when sending message:Command was interrupted because of
failover, before being sent
        at org.apache.qpid.client.BasicMessageProducer_0_10.sendMessage(BasicMessageProducer_0_10.java:243)
        at org.apache.qpid.client.BasicMessageProducer.sendImpl(BasicMessageProducer.java:499)
        at org.apache.qpid.client.BasicMessageProducer.send(BasicMessageProducer.java:297)

Can you someone please let me know how we can make it work ?




This message is for information purposes only, it is not a recommendation, advice, offer or
solicitation to buy or sell a product or service nor an official confirmation of any transaction.
It is directed at persons who are professionals and is not intended for retail customer use.
Intended for recipient only. This message is subject to the terms at: www.barclays.com/emaildisclaimer.

For important disclosures, please see: www.barclays.com/salesandtradingdisclaimer regarding
market commentary from Barclays Sales and/or Trading, who are active market participants;
and in respect of Barclays Research, including disclosures relating to specific issuers, please
see http://publicresearch.barclays.com.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message