public String createMessageDestination()
{
String serviceId = "message-service";
String id = "MyTransientTopic2";
MessageService msgService = (MessageService)msgBroker.getService(serviceId);
MessageDestination msgDestination;
msgDestination = (MessageDestination)msgService.createDestination(id);
msgDestination.addChannel("qa-polling-amf");
ServerSettings serverSettings = new ServerSettings();
serverSettings.setMessageTTL(0);
serverSettings.setDurable(false);
msgDestination.setServerSettings(serverSettings);
// we'll use the default adapter - so nothing else is needed
if (msgService.isStarted())
msgDestination.start();
return "Destination: "+id+" created for Service: "+serviceId;
}