use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ATParticipantProcessor method replayCommit.
/**
* Execute the ReplayCommit
* @param map The current addressing context.
*
* @throws SoapFault11 for errors during processing
*/
public void replayCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
try {
final CommitFailureRecoveryDurable2PCParticipant participant = new CommitFailureRecoveryDurable2PCParticipant();
final ParticipantEngine engine = ATInteropUtil.registerDurable2PC(coordinationContext, participant, new Uid().toString());
participant.setEngine(engine);
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ATParticipantProcessor method completionRollback.
/**
* Execute the CompletionRollback
* @param coordinatorURI The address of the coordinator to employ.
* @param map The current addressing context.
*
* @throws SoapFault11 for errors during processing
*/
public void completionRollback(final String coordinatorURI, final MAP map) throws SoapFault11 {
try {
final CoordinationContextType context = ATInteropUtil.createCoordinationContext(coordinatorURI);
final CompletionCoordinatorParticipant participant = ATInteropUtil.registerCompletion(context, context.getIdentifier().getValue());
participant.rollback();
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ATParticipantProcessor method completionCommit.
/**
* Execute the CompletionCommit
* @param coordinatorURI The address of the coordinator to employ
* @param map The current addressing context.
* @throws SoapFault11 for errors during processing
*/
public void completionCommit(final String coordinatorURI, final MAP map) throws SoapFault11 {
try {
final CoordinationContextType context = ATInteropUtil.createCoordinationContext(coordinatorURI);
final CompletionCoordinatorParticipant participant = ATInteropUtil.registerCompletion(context, context.getIdentifier().getValue());
participant.commit();
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ATParticipantProcessor method readonly.
/**
* Execute the Readonly
* @param map The current addressing context.
*
* @throws SoapFault11 for errors during processing
*/
public void readonly(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault11 {
try {
ATInteropUtil.registerDurable2PC(coordinationContext, new ReadonlyDurable2PCParticipant(), new Uid().toString());
ATInteropUtil.registerDurable2PC(coordinationContext, new CommitDurable2PCParticipant(), new Uid().toString());
} catch (final Throwable th) {
throw new SoapFault11(th);
}
}
use of com.arjuna.webservices11.SoapFault11 in project narayana by jbosstm.
the class ParticipantPortTypeImpl method readonly.
/**
*/
@WebMethod(operationName = "Readonly", action = "http://fabrikam123.com/Readonly")
@Oneway
@Action(input = "http://fabrikam123.com/Readonly")
@RequestWrapper(localName = "Readonly", targetNamespace = "http://fabrikam123.com", className = "com.jboss.transaction.txinterop.webservices.atinterop.generated.TestMessageType")
public void readonly() {
MessageContext ctx = webServiceCtx.getMessageContext();
MAP inboundMap = AddressingHelper.inboundMap(ctx);
CoordinationContextType coordinationContext = CoordinationContextManager.getContext(ctx);
try {
ATParticipantProcessor.getParticipant().readonly(coordinationContext, inboundMap);
} catch (SoapFault11 sf) {
sendSoapFault(inboundMap, sf);
return;
}
sendResponse(inboundMap);
}
Aggregations