</channels>
</destination>
*/
private MessageDestination createDestination(String id, MessageService messageService)
{
MessageDestination msgDest;
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);
ns.setClusterId("default-tcp-cluster");
msgDest.setNetworkSettings(ns);
// <server>
ServerSettings ss = new ServerSettings();
ss.setMessageTTL(0);
ss.setDurable(false);
msgDest.setServerSettings(ss);
//Use a channel that does not use the {server.name}:{server.port} tokens
//msgDest.addChannel("qa-rtmp-cluster");
msgDest.addChannel("qa-amf-polling-cluster");
//msgDest.addChannel("qa-http-polling-cluster");
return msgDest;
}