On 07/26/2014 04:05 PM, Fraser Adams wrote:
As normal for QMF I want a dynamic reply address/queue, which I can get
if I do.

var subscription = messenger.subscribe('amqp://0.0.0.0:5673/#');

However I don't know how to find the name of the queue thus created at
run time that I can use to populate the replyTo?

my subscribe returns the subscription but my subscription.getAddress();
just returns an empty string - it could be an issue with my
implementation

I suspect this is indeed the issue. The pn_subscription_address call will call pni_messenger_work until it either gets an error or the subscription has a non-null address (the name of the dynamic node being returned by the broker in the attach it sends). It returns NULL if an error is encountered.

but I don't think so as it's just a thin wrapper round
pn_messenger_subscribe and pn_subscription_address.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to