public void contextInitialized(final ServletContextEvent servletContextEvent)
{
Sequencer.Callback callback = new Sequencer.Callback(Sequencer.SEQUENCE_WSCOOR11, Sequencer.WEBAPP_WSC11) {
public void run() {
// TODO work out how to configure the endpoint name here
final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry() ;
String bindAddress = System.getProperty(Environment.XTS_BIND_ADDRESS);
String bindPort = System.getProperty(Environment.XTS_BIND_PORT);
String secureBindPort = System.getProperty(Environment.XTS_SECURE_BIND_PORT);
if (bindAddress == null) {
bindAddress = "127.0.0.1";
}
if (bindPort == null) {
bindPort = "8080";
}
if (secureBindPort == null) {
secureBindPort = "8443";
}
final String baseUri = "http://" + bindAddress + ":" + bindPort + "/ws-c11/";
final String uri = baseUri + "RegistrationService";
final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + "/ws-c11/";
final String secureUri = secureBaseUri + "RegistrationService";
serviceRegistry.registerServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(CoordinationConstants.REGISTRATION_SERVICE_NAME, secureUri); ;
}
};
}