Gordon Sim wrote: > > > The simplest way (in my view) is to pass in an instance of > SubscriptionSettings to each SubscriptionManager::subscribe() call. > > However if the default settings work for you (and it sounds like they > might?) then you don't even need to do that. Just call subscribe with > your listener and the queue name. >
Default setting is working fine. But problem is that when i set ACCEPT_MODE_EXPLICIT for multiple queues, program crashes even if auto acquire is off or on. Now i am trying with ACCEPT_MODE_EXPLICIT and ACQUIRE_MODE_PRE_ACQUIRED, but program crashes after sometime. But one advantage using ACQUIRE_MODE_PRE_ACQUIRED is that queue is correctly dequeued after accepting the msg, and that queue depth is reported 0 as per queue-stats tool. If i would have set ACQUIRE_MODE_NOT_ACQUIRED, queue depth would be greater and also program crashes in this case also. Only mode working with multiple queues from my experiences, is ACCEPT_MODE_NONE. I would confirm this info with more research from my side. Thanks & Regards, Denny -- View this message in context: http://n2.nabble.com/Bad-allocation-error-tp4265473p4283761.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]
