Hello,
In qpid-config there's code to print the name of the alternate exchange for
queues or exchanges.
For queues it's
if q.altExchange:
print "--alternate-exchange=%s" % q._altExchange_.name,
I'm not familiar with python so the "_altExchange_" is very cryptic to me
the "q.altExchange" just checks for the presence of the altExchange
property.
The altExchange property is an objId that references an exchange to I'd have
assumed code like
exchanges = self.qmf.getObjects(_class="exchange", _agent=self.brokerAgent)
ex = self.findById (exchanges, q.altExchange)
altename = ex.name
would have been needed to find the name of the alternate exchange
Could someone please tell me what's going on?
Thanks
Fraser
--
View this message in context:
http://apache-qpid-users.2158936.n2.nabble.com/qpid-config-what-does-q-altExchange-name-do-tp6591980p6591980.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]