BusinessActivityConstants.SERVICE_PARTICIPANT_COMPLETION_COORDINATOR,
id);
}
catch (Exception ex)
{
throw new InvalidStateException();
}
}
else
if (BusinessActivityConstants.WSBA_SUB_PROTOCOL_COORDINATOR_COMPLETION
.equals(protocolIdentifier))
{
final String id = new Uid().stringForm();
try
{
final CoordinatorCompletionCoordinatorEngine engine = new CoordinatorCompletionCoordinatorEngine(id, participantProtocolService) ;
BusinessAgreementWithCoordinatorCompletionImple participant = new BusinessAgreementWithCoordinatorCompletionImple(
new BusinessAgreementWithCoordinatorCompletionStub(engine), id);
engine.setCoordinator(participant.participantManager()) ;
_coordManager.enlistParticipant(participant);
_coordManager.suspend();
return getParticipantManager(
BusinessActivityConstants.SERVICE_COORDINATOR_COMPLETION_COORDINATOR,
id);
}
catch (Exception ex)
{
throw new InvalidStateException();
}
}
else
if (ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION.equals(protocolIdentifier))
{
try
{
return getParticipantManager(
ArjunaTXConstants.SERVICE_TERMINATION_COORDINATOR,
instanceIdentifier.getInstanceIdentifier());
}
catch (Exception ex)
{
throw new InvalidStateException();
}
}
else
{
wstxLogger.arjLoggerI18N