proxyService.setId(serviceId);
proxyService.setManaged(true);
proxyService.setMessageBroker(msgBroker);
proxyService.addDefaultChannel("qa-http");
//proxyService.addDefaultChannel("my-amf");
proxyService.registerAdapter("http-proxy", "flex.messaging.services.http.HTTPProxyAdapter");
proxyService.registerAdapter("soap-proxy", "flex.messaging.services.http.SOAPProxyAdapter");
proxyService.setDefaultAdapter("http-proxy");
msgBroker.addService(proxyService);
if (msgBroker.isStarted())
proxyService.start();