Search in sources :

Example 6 with ParticipantCompletionParticipantInboundEvents

use of com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents in project narayana by jbosstm.

the class ParticipantCompletionParticipantProcessorImpl method exited.

/**
 * Exited.
 * @param exited The exited notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 */
public void exited(final NotificationType exited, final MAP map, final ArjunaContext arjunaContext) {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
    final ParticipantCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier);
    if (participant != null) {
        try {
            participant.exited(exited, map, arjunaContext);
        } catch (final Throwable th) {
            if (WSTLogger.logger.isTraceEnabled()) {
                WSTLogger.logger.tracev("Unexpected exception thrown from exited:", th);
            }
        }
    } else if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.tracev("Exited called on unknown participant: {0}", new Object[] { instanceIdentifier });
    }
}
Also used : ParticipantCompletionParticipantInboundEvents(com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents) InstanceIdentifier(com.arjuna.webservices11.wsarj.InstanceIdentifier)

Example 7 with ParticipantCompletionParticipantInboundEvents

use of com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents in project narayana by jbosstm.

the class ParticipantCompletionParticipantProcessorImpl method status.

/**
 * Status.
 * @param status The status type.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 */
public void status(final StatusType status, final MAP map, final ArjunaContext arjunaContext) {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
    final ParticipantCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier);
    if (participant != null) {
        try {
            participant.status(status, map, arjunaContext);
        } catch (final Throwable th) {
            if (WSTLogger.logger.isTraceEnabled()) {
                WSTLogger.logger.tracev("Unexpected exception thrown from status:", th);
            }
        }
    } else if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.tracev("Status called on unknown participant: {0}", new Object[] { instanceIdentifier });
    }
}
Also used : ParticipantCompletionParticipantInboundEvents(com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents) InstanceIdentifier(com.arjuna.webservices11.wsarj.InstanceIdentifier)

Example 8 with ParticipantCompletionParticipantInboundEvents

use of com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents in project narayana by jbosstm.

the class ParticipantCompletionParticipantProcessorImpl method soapFault.

/**
 * SOAP Fault.
 * @param fault The SOAP fault notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 */
public void soapFault(final SoapFault fault, final MAP map, final ArjunaContext arjunaContext) {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
    final ParticipantCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier);
    if (participant != null) {
        try {
            participant.soapFault(fault, map, arjunaContext);
        } catch (final Throwable th) {
            if (WSTLogger.logger.isTraceEnabled()) {
                WSTLogger.logger.tracev("Unexpected exception thrown from soapFault:", th);
            }
        }
    } else if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.tracev("SoapFault called on unknown participant: {0}", new Object[] { instanceIdentifier });
    }
}
Also used : ParticipantCompletionParticipantInboundEvents(com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents) InstanceIdentifier(com.arjuna.webservices11.wsarj.InstanceIdentifier)

Example 9 with ParticipantCompletionParticipantInboundEvents

use of com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents in project narayana by jbosstm.

the class ParticipantCompletionParticipantProcessorImpl method notCompleted.

/**
 * Not Completed.
 * @param notCompleted The not completed notification.
 * @param map The addressing context.
 * @param arjunaContext The arjuna context.
 */
public void notCompleted(final NotificationType notCompleted, final MAP map, final ArjunaContext arjunaContext) {
    final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
    final ParticipantCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier);
    if (participant != null) {
        try {
            participant.notCompleted(notCompleted, map, arjunaContext);
        } catch (final Throwable th) {
            if (WSTLogger.logger.isTraceEnabled()) {
                WSTLogger.logger.tracev("Unexpected exception thrown from notCompleted:", th);
            }
        }
    } else if (WSTLogger.logger.isTraceEnabled()) {
        WSTLogger.logger.tracev("Exited called on unknown participant: {0}", new Object[] { instanceIdentifier });
    }
}
Also used : ParticipantCompletionParticipantInboundEvents(com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents) InstanceIdentifier(com.arjuna.webservices11.wsarj.InstanceIdentifier)

Aggregations

InstanceIdentifier (com.arjuna.webservices11.wsarj.InstanceIdentifier)9 ParticipantCompletionParticipantInboundEvents (com.arjuna.webservices11.wsba.ParticipantCompletionParticipantInboundEvents)9 XTSBARecoveryManager (org.jboss.jbossts.xts.recovery.participant.ba.XTSBARecoveryManager)3 SoapFault11 (com.arjuna.webservices11.SoapFault11)1 MAP (org.jboss.ws.api.addressing.MAP)1