msgDest = (MessageDestination)messageService.createDestination(id);
// <network>
NetworkSettings ns = new NetworkSettings();
ns.setSubscriptionTimeoutMinutes(0);
ThrottleSettings ts = new ThrottleSettings();
ts.setInboundPolicy(ThrottleSettings.Policy.ERROR);
ts.setIncomingClientFrequency(0);
ts.setOutboundPolicy(ThrottleSettings.Policy.IGNORE);
ts.setOutgoingClientFrequency(0);
ns.setThrottleSettings(ts);
//Uncomment the following for clustering test
ns.setClusterId("default-tcp-cluster");
msgDest.setNetworkSettings(ns);