Hi,
I am using the C++ messaging API for QPID to realize an
remote-procedure-call (RPC) via a request-reply pattern (see
https://qpid.apache.org/releases/qpid-0.24/programming/book/ch02s12.html)

The client pushes to a service-queue and generates an reply-queue.
The server reads from the service-queue and pushes to the reply-queue.

The reply-queues are automatically deleted if the client disconnects. It may
thus happen, that the reply-to flag of a message (received by the server)
contains a queue which does not exist anymore.

The code
const Address& address = request.getReplyTo();
Sender sender = session.createSender(address);
will in this case create an exception and invalidates the current session.

I would like to check in advance, whether a queue exists before creating the
sender. Is this anyhow possible with the C++ messaging API?

Thx in advance...



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/C-API-Check-whether-queue-exists-tp7636548.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

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

Reply via email to