On 07/13/2012 12:04 PM, Toralf Lund wrote:
Hi.
I'm wondering if there is any way I can set up options on a
qpid::messaging::Sender so that a direct exchange will be created if
it's missing. I mean, for topic exchanges, I do something like
sender=session.createSender("myexchange; { create: sender, delete:
never, node: { type: topic } }");
Similarly, I make sure queues for receivers exist using
receiver=session.createReceiver("myqueue; { create: receiver, delete:
never, node: { type: queue } }");
But, it seems like only "topic" and "queue" are accepted as arguments to
"type", so how about other exchange types?
The use of 'topic' in that context is more analogous to its use in JMS
if that is of any use. I.e. it denotes the basic messaging pattern,
'pub-sub' as opposed to queue.
You can control the exchange that is created to support the topic and it
need not be an AMQP 0-10 topic exchange (yes, I agree the terminology is
confusing!). To do so you specifying an x-declare map within your node
properties, and can specify the exchange type within that (the fields
inside the x-declare correspond to an AMQP 0-10 declare command).
E.g. to create a direct exchange:
"myexchange; {create: sender, node: {type: topic, x-declare:{type:direct}}}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org