qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nithesh Shetty <knitheshshe...@yahoo.com>
Subject Re: localqueue get
Date Wed, 15 Jul 2009 09:27:27 GMT
 Hi,
 the listener sample has the following settings;
  SubscriptionManager subscriptions(session);
  SubscriptionSettings settings;
  settings.exclusive = false;
  setting.flowControl = FlowControl::messageWindow(1);
  settings.acceptMode = ACCEPT_MODE_EXPLICIT;
  settings.acquireMode = ACQUIRE_MODE_NOT_ACQUIRED;
  LocalQueue local_queue;
  subscriptions.subscribe(local_queue, "RMS", settings, "rmsset");
 Message message;
if ( !local_queue.get(message, qpid::sys::TIME_INFINITE) )
{
   cout << "queue is empty " <<endl;
 
}
//gets message successfully

if ( !local_queue.get(message, qpid::sys::TIME_INFINITE) )
{
   cout << "queue is empty " <<endl;
 
}
//displays queue is empty.
 
Now here the problem there are around 20 msg in the queue, after getting (or browsing since
acquiremode is NOT_ACQUIRED) the first message when i try to get the message from the queue
second time it returns false.
 
any change in the configuration.  
 
Thanks for your help.
 
Regards,
 
Nithesh
 
 
 
 


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