On 09/05/2012 03:06 PM, mburkhart wrote:
Is there a way to declare the exchange when creating a receiver (using the Messaging API)?
Yes, you can do that using the address create option, along with appropriate node properties. You can set the fields of the declare issued as a result through the x-declare node property (which is a nested map). E.g. to create a durable exchange of type 'direct':
ssn.createReceiver("my-exchange; {create: always, node: {type: topic, durable:true, x-declare:{type:direct, alternate-exchange:another-exchange}}");
Node the node type of 'topic' is really a pseudonym for 'exchange' or the 'pub-sub' pattern. The AMQP exchange type is set in the x-declare.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
