Gordon Sim wrote:
> 
> 
> Maybe worth asking as an aside at this point why it is you want to 
> subscribe in unacquired mode? Do you want to acquire every message you 
> receive? If so the pre-acquired mode will do that more simply and 
> efficiently.
> 
> 

All i need is to confirm each message received by subscriber with the
broker. i.e, i need a reliable type of communication.

Thats why i turned on ACCEPT_MODE_EXPLICIT. 

Also, i turn on pre-acquired mode, because i thought otherwise there is no
point in explicit acceptance. That broker will de-queue the msg
automatically without getting "accepted" for that.? is that true?  
In fact i turned on once, but i had to remove this, because here also i
faced same problem. 

If i turn acquire off, then broker would dequeue that messages, unless and
until it receives "accept" msg only, further that msg is acquired by
subscriber. Thats my understand, please correct me if i am wrong.

Only combination proved me working with no issues and too for multiple queue
listeners,  is   ACCEPT_MODE_NONE and ACQUIRE_MODE_PRE_ACQUIRED.

If there is any other way to setup reliable connection between broker and
subscribers, i would gladly add on to my code. 

Thanks,

Regards,
Denny
-- 
View this message in context: 
http://n2.nabble.com/Bad-allocation-error-tp4265473p4272038.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to