qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nithesh Shetty <knitheshshe...@yahoo.com>
Subject LocalQueue get
Date Wed, 15 Jul 2009 12:50:22 GMT

I have created a thread where i
open connection to broker 
 and create a localqueue with the below configuration
  SubscriptionManager subscriptions(session);
  SubscriptionSettings settings;
  settings.exclusive = false;
  setting.flowControl = FlowControl::messageWindow(1);
  settings.acceptMode = ACCEPT_MODE_EXPLICIT;
  settings.acquireMode = ACQUIRE_MODE_NOT_ACQUIRED;
in the thread i have written a loop to get message 
Message message;
for (int i = 0; i < 100; ++i)
  localqueue.get(message, qpid::sys::TIME_INFINITE);
There are around 200 message in the queue, idealy it should get 100 messages
but it doesn't retrieve all the hundred message. 
any change in the configuration.  
Thanks in advance.

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