Search in sources :

Example 11 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendReadonly.

/**
 * Send a readonly request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendReadonly(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, readonlyAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.readonly();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 12 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendCompletionRollback.

/**
 * Send a completion rollback request.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @param coordinatorURI The coordinator URI.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendCompletionRollback(final MAP map, final String coordinatorURI) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, completionRollbackAction);
    port.completionRollback(coordinatorURI);
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 13 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendRetryPreparedCommit.

/**
 * Send a retryPreparedCommit request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendRetryPreparedCommit(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, retryPreparedCommitAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.retryPreparedCommit();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 14 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendPhase2Rollback.

/**
 * Send a phase2Rollback request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendPhase2Rollback(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, phase2RollbackAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.phase2Rollback();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Example 15 with ParticipantPortType

use of com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType in project narayana by jbosstm.

the class AsyncParticipantClient method sendPreparedAfterTimeout.

/**
 * Send a preparedAfterTimeout request.
 * @param coordinationContext The coordination context.
 * @param map The addressing context initialised with to, message ID and relates to.
 * @throws SoapFault For any errors.
 * @throws IOException for any transport errors.
 */
public void sendPreparedAfterTimeout(final CoordinationContextType coordinationContext, final MAP map) throws SoapFault, IOException {
    map.setReplyTo(initiator);
    ParticipantPortType port = ATInteropClient.getParticipantPort(map, preparedAfterTimeoutAction);
    CoordinationContextManager.setThreadContext(coordinationContext);
    try {
        port.preparedAfterTimeout();
    } finally {
        CoordinationContextManager.setThreadContext(null);
    }
}
Also used : ParticipantPortType(com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)

Aggregations

ParticipantPortType (com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantPortType)16 ParticipantService (com.jboss.transaction.txinterop.webservices.atinterop.generated.ParticipantService)1 CoordinationContextHandler (com.jboss.transaction.txinterop.webservices.handlers.CoordinationContextHandler)1 ArrayList (java.util.ArrayList)1 BindingProvider (javax.xml.ws.BindingProvider)1 Handler (javax.xml.ws.handler.Handler)1 AddressingFeature (javax.xml.ws.soap.AddressingFeature)1