set flow control as a policy

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@813384 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2009-09-10 11:44:07 +00:00
parent a831a08abb
commit aead3e0fc0
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ public class ProducerFlowControlTest extends JmsTestSupport {
policy.setMemoryLimit(1);
policy.setPendingSubscriberPolicy(new VMPendingSubscriberMessageStoragePolicy());
policy.setPendingQueuePolicy(new VMPendingQueueMessageStoragePolicy());
policy.setProducerFlowControl(true);
policyMap.setDefaultEntry(policy);
service.setDestinationPolicy(policyMap);