// service.addHandler(new xsul.xhandler_context.ServerContextAccessHandler("service-context"));
// //service.startService();
// service.initManagmentAgent();
XregistryXmlBeansWrapper xregistryXmlBeansWrapper = new XregistryXmlBeansWrapper(globalContext);
HttpBasedServices httpServices;
if(ctx != null){
ServerSocketFactory secureSocketFactory = new PuretlsServerSocketFactory(port, ctx);
httpServices = new XregistryHttpbasedServices(secureSocketFactory,xregistryXmlBeansWrapper.getRegistryImpl());
}else{
httpServices = new XregistryHttpbasedServices(port,xregistryXmlBeansWrapper.getRegistryImpl());
}
String cwsdlLoc = Thread.currentThread().getContextClassLoader().getResource("xregistry.wsdl").toString();
XmlBeansBasedService xbeanBasedService = new XmlBeansBasedService("xregistry", cwsdlLoc,
xregistryXmlBeansWrapper);
cmsvc = httpServices.addService(xbeanBasedService)
.addHandler(new xsul.xhandler_context.ServerContextAccessHandler("service-context"));
System.out.println("Server started on "+httpServices.getServer().getLocation());
} catch (HttpServerException e) {
throw new XregistryException(e);
} catch (DynamicInfosetProcessorException e) {
throw new XregistryException(e);
} catch (FileNotFoundException e) {