responseAddressingContext = AddressingContext.createResponseContext(addressingContext, MessageId.getMessageId()) ;
}
catch (final AlreadyRegisteredException alreadyRegisteredException)
{
final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;
final SoapFault soapFault = new SoapFault10(SoapFaultType.FAULT_SENDER, CoordinationConstants.WSCOOR_ERROR_CODE_ALREADY_REGISTERED_QNAME,
WSCLogger.log_mesg.getString("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_1")) ;
RegistrationRequesterClient.getClient().sendSoapFault(faultAddressingContext, soapFault) ;
return ;
}
catch (final InvalidProtocolException invalidProtocolException)
{
final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;
final SoapFault soapFault = new SoapFault10(SoapFaultType.FAULT_SENDER, CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME,
WSCLogger.log_mesg.getString("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_2")) ;
RegistrationRequesterClient.getClient().sendSoapFault(faultAddressingContext, soapFault) ;
return ;
}
catch (final InvalidStateException InvalidStateException)
{
final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;
final SoapFault soapFault = new SoapFault10(SoapFaultType.FAULT_SENDER, CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_STATE_QNAME,
WSCLogger.log_mesg.getString("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_3")) ;
RegistrationRequesterClient.getClient().sendSoapFault(faultAddressingContext, soapFault) ;
return ;
}
catch (final NoActivityException noActivityException)
{
final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;
final SoapFault soapFault = new SoapFault10(SoapFaultType.FAULT_SENDER, CoordinationConstants.WSCOOR_ERROR_CODE_NO_ACTIVITY_QNAME,
WSCLogger.log_mesg.getString("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_4")) ;
RegistrationRequesterClient.getClient().sendSoapFault(faultAddressingContext, soapFault) ;
return ;
}
catch (final Throwable th)
{
if (WSCLogger.arjLoggerI18N.isDebugEnabled())
{
WSCLogger.arjLoggerI18N.debug("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_5", th) ;
}
final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;
final SoapFault soapFault = new SoapFault10(th) ;
RegistrationRequesterClient.getClient().sendSoapFault(faultAddressingContext, soapFault) ;
return ;
}
RegistrationRequesterClient.getClient().sendRegisterResponse(responseAddressingContext, coordinationProtocolService) ;
}
else
{
if (WSCLogger.arjLoggerI18N.isDebugEnabled())
{
WSCLogger.arjLoggerI18N.debug("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_6", new Object[] {protocolIdentifier}) ;
}
final AddressingContext faultAddressingContext = AddressingContext.createFaultContext(addressingContext, MessageId.getMessageId()) ;
final SoapFault soapFault = new SoapFault10(SoapFaultType.FAULT_SENDER, CoordinationConstants.WSCOOR_ERROR_CODE_INVALID_PROTOCOL_QNAME,
WSCLogger.log_mesg.getString("com.arjuna.wsc.messaging.RegistrationCoordinatorProcessorImpl_2")) ;
RegistrationRequesterClient.getClient().sendSoapFault(faultAddressingContext, soapFault) ;
}
}
catch (Throwable throwable)