use of com.arjuna.webservices11.wsat.CoordinatorInboundEvents in project narayana by jbosstm.
the class CoordinatorProcessorImpl 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 CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier);
if (coordinator != null) {
try {
coordinator.soapFault(fault, map, arjunaContext);
} catch (final Throwable th) {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_soapFault_1(th);
}
} else {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_soapFault_2(instanceIdentifier.toString());
}
}
use of com.arjuna.webservices11.wsat.CoordinatorInboundEvents in project narayana by jbosstm.
the class CoordinatorProcessorImpl method prepared.
/**
* Prepared.
* @param prepared The prepared notification.
* @param map The addressing context.
* @param arjunaContext The arjuna context.
*/
public void prepared(final Notification prepared, final MAP map, final ArjunaContext arjunaContext) {
final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier);
if (coordinator != null) {
try {
coordinator.prepared(prepared, map, arjunaContext);
} catch (final Throwable th) {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_prepared_1(th);
}
} else if (areRecoveryLogEntriesAccountedFor()) {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_prepared_2(instanceIdentifier.toString());
final String identifierValue = instanceIdentifier.getInstanceIdentifier();
if ((identifierValue != null) && (identifierValue.length() > 0) && (identifierValue.charAt(0) == 'D')) {
sendRollback(map, arjunaContext);
} else {
sendUnknownTransaction(map, arjunaContext);
}
} else {
// there may be a participant stub waiting to be recovered from the log so drop the
// message, forcing the caller to retry
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_prepared_3(instanceIdentifier.toString());
}
}
use of com.arjuna.webservices11.wsat.CoordinatorInboundEvents in project narayana by jbosstm.
the class CoordinatorProcessorImpl method committed.
/**
* Committed.
* @param committed The committed notification.
* @param map The addressing context.
* @param arjunaContext The arjuna context.
*/
public void committed(final Notification committed, final MAP map, final ArjunaContext arjunaContext) {
final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier);
if (coordinator != null) {
try {
coordinator.committed(committed, map, arjunaContext);
} catch (final Throwable th) {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_1(th);
}
} else {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_committed_2(instanceIdentifier.toString());
}
}
use of com.arjuna.webservices11.wsat.CoordinatorInboundEvents in project narayana by jbosstm.
the class CoordinatorProcessorImpl method readOnly.
/**
* Read only.
* @param readOnly The read only notification.
* @param map The addressing context.
* @param arjunaContext The arjuna context.
*/
public void readOnly(final Notification readOnly, final MAP map, final ArjunaContext arjunaContext) {
final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier);
if (coordinator != null) {
try {
coordinator.readOnly(readOnly, map, arjunaContext);
} catch (final Throwable th) {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_readOnly_1(th);
}
} else {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_readOnly_2(instanceIdentifier.toString());
}
}
use of com.arjuna.webservices11.wsat.CoordinatorInboundEvents in project narayana by jbosstm.
the class CoordinatorProcessorImpl method aborted.
/**
* Aborted.
* @param aborted The aborted notification.
* @param map The addressing context.
* @param arjunaContext The arjuna context.
*/
public void aborted(final Notification aborted, final MAP map, final ArjunaContext arjunaContext) {
final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier();
final CoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier);
if (coordinator != null) {
try {
coordinator.aborted(aborted, map, arjunaContext);
} catch (final Throwable th) {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_1(th);
}
} else {
WSTLogger.i18NLogger.warn_wst11_messaging_CoordinatorProcessorImpl_aborted_2(instanceIdentifier.toString());
}
}
Aggregations