qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Virgilio Fornazin <virgilioforna...@gmail.com>
Subject Re: C++ API - Check whether queue exists
Date Wed, 13 Jan 2016 16:51:21 GMT
You should use QMF calls to check it.
But, you just can catch the exception, it`s simpler and fastest than a
round-trip to the broker.

On Wed, Jan 13, 2016 at 2:07 PM, RatTac@web.de <RatTac@web.de> wrote:

> 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: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message