use of org.jboss.jbossts.xts.environment.WSCEnvironmentBean in project narayana by jbosstm.
the class InitiatorInitialisation method contextInitialized.
/**
* The context has been initialized.
* @param servletContextEvent The servlet context event.
*/
public void contextInitialized(final ServletContextEvent servletContextEvent) {
ServletContext context = servletContextEvent.getServletContext();
WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
String bindAddress = wscEnvironmentBean.getBindAddress11();
int bindPort = wscEnvironmentBean.getBindPort11();
String baseURI = "http://" + bindAddress + ":" + bindPort + "/sc007";
final String uri = baseURI + "/InitiatorService";
final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry();
serviceRegistry.registerServiceProvider(InteropConstants.SERVICE_INITIATOR, uri);
}
use of org.jboss.jbossts.xts.environment.WSCEnvironmentBean in project narayana by jbosstm.
the class ParticipantInitialisation method contextInitialized.
/**
* The context has been initialized.
* @param servletContextEvent The servlet context event.
*/
public void contextInitialized(final ServletContextEvent servletContextEvent) {
ServletContext context = servletContextEvent.getServletContext();
WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean();
String bindAddress = wscEnvironmentBean.getBindAddress11();
int bindPort = wscEnvironmentBean.getBindPort11();
String baseURI = "http://" + bindAddress + ":" + bindPort + "/sc007";
final String uri = baseURI + "/ParticipantService";
final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry();
serviceRegistry.registerServiceProvider(InteropConstants.SERVICE_PARTICIPANT, uri);
}
Aggregations