qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivek agarwal <koolvivek2...@gmail.com>
Subject Re: Query regarding asynchronous acknowledgments
Date Mon, 16 Aug 2010 13:53:23 GMT
So, do you mean that in acknowledging messages which are in exclusive
queues, I dont need to keep the same session/connection open?

Could you please elaborate it more, or point me to a useful resource.

Thanks,
Vivek

On Mon, Aug 16, 2010 at 7:14 PM, Rafael Schloming <rafaels@redhat.com>wrote:

> vivek agarwal wrote:
>
>> Hi,
>>
>> Do we have a API for direct AMQP over Apache Qpid, instead of going
>> through
>> JMS?
>> Also, I wanted to enquire if its implements AMQP .10 fully.
>>
>> I have a very specific use-case, where a consumer may consume a message,
>> and
>> acknowledge it after a long processing. So can it be done without keeping
>> the Session object ( through which I received the message) open?
>>
>
> You can't do this directly in pre 1-0 versions of the protocol. The
> 0-8/0-9/0-10 protocols all model acknowledgment as something that happens
> within the same context as the message transfer, and if that context goes
> away (i.e. the connection/session dies or is closed), then the message is
> requeued.
>
> You can achieve the equivalent of this by ensuring that each consumer has
> an exclusive queue. For topics this is easy, you just have durable queues
> bound into the exchange. For a shared queue scenario you'd need extra logic
> (either in your clients or in a separate process) to shuffle messages from
> the shared queue into the exclusive queues.
>
> --Rafael
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>

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