</destination>
*/
private MessageDestination createDestination(String id, MessageService messageService)
{
MessageDestination msgDest;
msgDest = (MessageDestination)messageService.createDestination(id);
// <network>
NetworkSettings ns = new NetworkSettings();
ns.setSubscriptionTimeoutMinutes(0);
// add clusterId and sharedBackend for code coverage
ns.setClusterId("default-tcp-cluster");
ns.setSharedBackend(true);
ThrottleSettings ts = new ThrottleSettings();
ts.setIncomingClientFrequency(0);
ts.setInboundPolicy(ThrottleSettings.Policy.ERROR);
ts.setOutgoingClientFrequency(0);
ts.setOutboundPolicy(ThrottleSettings.Policy.IGNORE);
ns.setThrottleSettings(ts);
msgDest.setNetworkSettings(ns);
// <server>
ServerSettings ss = new ServerSettings();
ss.setDurable(false);
msgDest.setServerSettings(ss);
// <channels>
msgDest.addChannel("qa-polling-amf");
//Properties that appear in the destination above must "really" be set in a JMS adapter
JMSAdapter adapter = new JMSAdapter();
adapter.setId("jms");
// Use JMSSettings object for the <jms> properties above