use of com.arjuna.webservices11.ServiceRegistry in project narayana by jbosstm.
the class ATParticipantInitialisation method contextDestroyed.
/**
* The context is about to be destroyed.
* @param servletContextEvent The servlet context event.
*/
public void contextDestroyed(final ServletContextEvent servletContextEvent) {
final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry();
serviceRegistry.removeServiceProvider(ATInteropConstants.SERVICE_PARTICIPANT);
}
use of com.arjuna.webservices11.ServiceRegistry 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);
}
use of com.arjuna.webservices11.ServiceRegistry in project narayana by jbosstm.
the class BusinessAgreementWithParticipantCompletionCoordinatorTest method setUp.
@Before
public void setUp() throws Exception {
origParticipantCompletionParticipantProcessor = ParticipantCompletionParticipantProcessor.setProcessor(testParticipantCompletionParticipantProcessor);
final ServiceRegistry serviceRegistry = ServiceRegistry.getRegistry();
}
Aggregations