On 08/03/2012 01:55 PM, Gordon Sim wrote:
On 08/03/2012 01:35 PM, Fraser Adams wrote:subscription = subscriptions.subscribe(*this, queue);subscription.setFlowControl(FlowControl::messageWindow(100)); // Why doesn't this work :-( ??? subscription.setAutoAck(10);When you say it didn't work, what exactly do you mean? That it behaved like the messaqeCredit() call? or that it didn't restrict the window? Try setting the option on subscribe, rather than after it. E.g. subscription = subscriptions.subscribe(*this, queue, SubscriptionSettings(FlowControl::messageCredit(100)));
Sorry! That should read messageWindow() of course!!
(or else try a Session::messageStop() passing in the subscription name before changing the flow control settings). --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
