in src/org/apache/kandula/wsba/BACoordinatorCompletionParticipantServiceSkeleton.java [76:108]
public void CompleteOperation(org.oasis_open.docs.ws_tx.wsba._2006._06.Complete param4)
throws AxisFault {
OMElement header = MessageContext.getCurrentMessageContext().getEnvelope().getHeader();
OMElement firstChildWithName = header
.getFirstChildWithName(Constants.REQUESTER_ID_PARAMETER);
if (firstChildWithName != null) {
String requesterID = firstChildWithName.getText();
AbstractContext context2 = StorageUtils.getContext(requesterID);
if (context2 != null) {
ParticipantContext context = (ParticipantContext) context2;
BAParticipantTransactionCoordinator participantCoordinator = new BAParticipantTransactionCoordinator();
try {
participantCoordinator.complete(context);
} catch (AbstractKandulaException e) {
log.fatal("WS_BA : " + context.getCoordinationContext().getActivityID()
+ " : Complete Operation :" + e);
throw AxisFault.makeFault(e);
}
} else {
log.fatal("WS_BA : Message ID "
+ MessageContext.getCurrentMessageContext().getMessageID()
+ " : CompleteOperation : Participant Context Not Found.");
throw new AxisFault("CompleteOperation : Participant Context Not Found.");
}
} else {
AxisFault e = new AxisFault(
"Requester ID header is not found in the message. Please check whether ws-addressing is enabled in the coordinator.");
log.fatal("WS_BA : Message ID "
+ MessageContext.getCurrentMessageContext().getMessageID()
+ " : Complete Operation :" + e);
throw e;
}
}