/** Construct the terminator participant client. */ private TerminationCoordinatorClient() { MAPBuilder builder = PrivilegedMapBuilderFactory.getInstance().getBuilderInstance(); completeAction = ArjunaTXConstants.WSARJTX_ACTION_COMPLETE; closeAction = ArjunaTXConstants.WSARJTX_ACTION_CLOSE; cancelAction = ArjunaTXConstants.WSARJTX_ACTION_CANCEL; final ServiceRegistry serviceRegistry = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry(); final String terminationParticipantURIString = serviceRegistry.getServiceURI( ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, false); final String secureTerminationParticipantURIString = serviceRegistry.getServiceURI( ArjunaTX11Constants.TERMINATION_PARTICIPANT_SERVICE_NAME, true); terminationParticipant = builder.newEndpoint(terminationParticipantURIString); secureTerminationParticipant = builder.newEndpoint(secureTerminationParticipantURIString); }
public UserBusinessActivityStandaloneImple() { try { _activationCoordinatorService = XTSPropertyManager.getWSCEnvironmentBean().getCoordinatorURL11(); /* * If the coordinator URL hasn't been specified via the * configuration file then assume we are using a locally registered * implementation. */ if (_activationCoordinatorService == null) { final ServiceRegistry serviceRegistry = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry(); _activationCoordinatorService = serviceRegistry.getServiceURI(CoordinationConstants.ACTIVATION_SERVICE_NAME); } } catch (Exception ex) { // TODO ex.printStackTrace(); } }