On 24 May 2017 at 11:57, girishlc <[email protected]> wrote:

> Rob,
>
> 1. When you talk about Queue Browsing, is it QueueBrowser class you are
> talking ?
>

Yes


> 2. I'm using Qpid Broker for Java with its in-built web console, where I
> can
> see the message status "Available" to "Acquired" after reading the message
> from Client.
> 3. I am receiving the acknowledgment from the consumer, able to send that
> acknowledgment to Qpid. From that Qpid is able to remove the message but
> there is no mapping between the messages acknowledged and removed. I want
> to
> map the acknowledgment based on the MessagID. Is there any method to get
> the
> messageID for the delivered message.
>
>
The behaviour of acknowledge is defined by JMS, it is not specific to
Qpid.  From
https://docs.oracle.com/javaee/7/api/javax/jms/Message.html#acknowledge-- :

"Acknowledges all consumed messages of the session of this consumed message.

All consumed JMS messages support the acknowledge method for use when a
client has specified that its JMS session's consumed messages are to be
explicitly acknowledged. By invoking acknowledge on a consumed message, a
client acknowledges all messages consumed by the session that the message
was delivered to."

I think everyone agrees it would be a lot less confusing if the
acknowledge() method was on the Session object (since it really operates
against the whole Session, not the particular message you call it on).
Unfortunately JMS defines the behaviour and places the method on the
Message.

JMS does not define a mechanism to acknowledge individual messages.

-- Rob


> --girish
>
>
>
> --
> View this message in context: http://qpid.2158936.n2.nabble.
> com/Re-delete-message-from-Queue-through-Java-code-tp7663338p7663354.html
> Sent from the Apache Qpid developers mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to