I am trying to just peek at a message on the queue.  I do not want to acquire 
or accept it.  I have tried the following code:


    SubscriptionManager idSubscription(session);
    Message m;
    idSubscription.setAcceptMode(qpid::framing::message::ACCEPT_MODE_NONE);
    
idSubscription.setAcquireMode(qpid::framing::message::ACQUIRE_MODE_NOT_ACQUIRED);
    idSubscription.get(m, "queue");

I thought I had set the modes correctly (I also tried the 
ACCEPT_MODE_EXPLICIT), but the message is always dequeued.  Do I need to 
release the message?  Or configure the peek differently?

Thanks.
                                          
_________________________________________________________________
Hotmail: Trusted email with Microsoft’s powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469226/direct/01/

Reply via email to