public EndpointReference getParticipantEndpoint()

in src/org/apache/kandula/utility/EndpointReferenceFactory.java [90:110]


	public EndpointReference getParticipantEndpoint(String id, String protocol) {
		EndpointReference epr = null;
		if (protocol.equals(Constants.WS_AT_VOLATILE2PC)
				|| protocol.equals(Constants.WS_AT_DURABLE2PC)) {
			epr = new EndpointReference(configuration.getLocationForEPR()
					+ "/axis2/services/AtomicTransactionParticipant");
			EndpointReferenceFactory
					.addReferenceProperty(epr, Constants.REQUESTER_ID_PARAMETER, id);
		} else if (protocol.equals(Constants.WS_BA_CC)) {
			epr = new EndpointReference(configuration.getLocationForEPR()
					+ "/axis2/services/BACoordinatorCompletionParticipantService");
			EndpointReferenceFactory
					.addReferenceProperty(epr, Constants.REQUESTER_ID_PARAMETER, id);
		} else if (protocol.equals(Constants.WS_BA_CC)) {
			epr = new EndpointReference(configuration.getLocationForEPR()
					+ "/axis2/services/BAParticipantCompletionParticipantService");
			EndpointReferenceFactory
					.addReferenceProperty(epr, Constants.REQUESTER_ID_PARAMETER, id);
		}
		return epr;
	}