Package com.jboss.transaction.txinterop.webservices.bainterop.processors

Examples of com.jboss.transaction.txinterop.webservices.bainterop.processors.BAInitiatorProcessor


    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendCancel(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here


    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendExit(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendFail(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendCannotComplete(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendParticipantCompleteClose(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendCoordinatorCompleteClose(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendUnsolicitedComplete(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendCompensate(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendCompensationFail(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

    {
        final String messageId = MessageId.getMessageId() ;
        final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
       
        final RequestCallback callback = new RequestCallback() ;
        final BAInitiatorProcessor initiator = BAInitiatorProcessor.getInitiator() ;
        initiator.registerCallback(messageId, callback) ;
        try
        {
            AsyncParticipantClient.getClient().sendParticipantCancelCompletedRace(coordinationContext, addressingProperties) ;
            callback.waitUntilTriggered(15000) ;
        }
        finally
        {
            initiator.removeCallback(messageId) ;
        }
       
        handleCallback(callback) ;
    }
View Full Code Here

TOP

Related Classes of com.jboss.transaction.txinterop.webservices.bainterop.processors.BAInitiatorProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.