The assumption there is that senders are expensive to create?
Yes. Are they? (I always specify the node type, so hopefully no need
for a broker roundtrip)
The reply-to address doesn't have to be a queue of course, to be
completely generic it should handle any exchange/routing-key pair
(at least in AMQP 0-10).
OK, didn't know that. I wanted to check if this is also the case for
AMQP 0-9-1, but could not find that info in the specs. Do you know?
Which Address attributes are relevant for the parameter of
Message::setReplyTo() - name, type, subject?
Let's say I create a Sender for queue A. It will actually point to the
default exchange with the routing key defaulting to A, right?
No, the messaging library resolves an address to a particular broker
entity. If the name matches a queue, then it assumes you want to
send to the queue. If the name matches an exchange then it assumes
you want to send to the exchange.
OK, coming back to the original question: is there a way how to create
a Sender pointing to the default exchange?
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]