public void CloseOperation()

in src/org/apache/kandula/wsba/BACoordinatorCompletionParticipantServiceSkeleton.java [42:74]


	public void CloseOperation(org.oasis_open.docs.ws_tx.wsba._2006._06.Close param1)
			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);
			try {
			if (context2!=null)
			{
			ParticipantContext context = (ParticipantContext) context2;
			BAParticipantTransactionCoordinator participantCoordinator = new BAParticipantTransactionCoordinator();
				participantCoordinator.close(context);
			}else {
				log.fatal("WS_BA : message "+ MessageContext.getCurrentMessageContext().getMessageID()
						+ " : CompensatedOperation : Business Activity Not Found");
				throw new NoActivityException("CompensateOperation : Business Activity Not Found");
			}
			} catch (AbstractKandulaException e) {
				log.fatal("WS_BA : Message ID : " + MessageContext.getCurrentMessageContext().getMessageID()
						+ " : close Operation :" + e);
				throw AxisFault.makeFault(e);
			}
		} 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()
					+ " : CloseOperation :" + e);
			throw e;
		}
	}