*/
public void contextInitialized(final ServletContextEvent servletContextEvent)
{
Sequencer.Callback callback = new Sequencer.Callback(Sequencer.SEQUENCE_WSCOOR11, Sequencer.WEBAPP_WST11) {
public void run() {
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-t11/";
final String uri = baseUri + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME;
final String secureBaseUri = "https://" + bindAddress + ":" + secureBindPort + "/ws-t11/";
final String secureUri = secureBaseUri + BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME;
serviceRegistry.registerServiceProvider(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, uri) ;
serviceRegistry.registerSecureServiceProvider(BusinessActivityConstants.PARTICIPANT_COMPLETION_PARTICIPANT_SERVICE_NAME, secureUri) ;
}
};
}