Examples of CoordinationContextType


Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

                    // found it - clear the must understand flag, retrieve the value and store an arjuna
                    // context in the message context
                    headerElement.setMustUnderstand(false);
                    final JAXBContext jaxbCtx = getJaxbContext();
                    final JAXBElement<CoordinationContextType> elt = jaxbCtx.createUnmarshaller().unmarshal(headerElement, CoordinationContextType.class);
                    final CoordinationContextType coordinationContext = elt.getValue();
                    CoordinationContextManager.setContext(context, coordinationContext);
                }
            }
        } catch (Exception se) {
            throw new ProtocolException(se);
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

     * @throws ProtocolException
     */
    protected boolean handleMessageOutbound(SOAPMessageContext context) throws ProtocolException
    {
        try {
            CoordinationContextType coordinationContext = CoordinationContextManager.getThreadContext();
            if (coordinationContext != null) {
                final JAXBContext jaxbCtx = getJaxbContext();

                // insert a header into the current message containing the coordination context
                final SOAPMessage soapMessage = context.getMessage();
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

                    // found it - clear the must understand flag, retrieve the value and store an arjuna
                    // context in the message context
                    headerElement.setMustUnderstand(false);
                    final JAXBContext jaxbCtx = getJaxbContext();
                    final JAXBElement<CoordinationContextType> elt = jaxbCtx.createUnmarshaller().unmarshal(headerElement, CoordinationContextType.class);
                    final CoordinationContextType coordinationContext = elt.getValue();
                    CoordinationContextManager.setContext(context, coordinationContext);
                }
            }
        } catch (Exception se) {
            throw new ProtocolException(se);
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

    public void completionCommit(final String coordinatorURI, final AddressingProperties addressingProperties)
        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) ;
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

    public void completionRollback(final String coordinatorURI, final AddressingProperties addressingProperties)
        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) ;
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

        final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_CANCELLED) ;
        ProxyConversation.setConversationState(conversationId, state) ;
        try
        {
            final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
            final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;
            getParticipantStub().cancel(serviceURI, context) ;
           
            final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
            terminator.cancel() ;
           
            state.waitForCompletion(0) ;
        }
        finally
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

        final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_EXITED) ;
        ProxyConversation.setConversationState(conversationId, state) ;
        try
        {
            final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
            final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;
            getParticipantStub().exit(serviceURI, context) ;
           
            state.waitForCompletion(getTestTimeout()) ;
           
            final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
            terminator.cancel() ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

        final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_FAILED) ;
        ProxyConversation.setConversationState(conversationId, state) ;
        try
        {
            final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
            final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;
            getParticipantStub().fail(serviceURI, context) ;
           
            state.waitForCompletion(getTestTimeout()) ;
           
            final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
            terminator.cancel() ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

        final InteropWaitState state = new InteropWaitState(BusinessActivityConstants.WSBA_ACTION_NOT_COMPLETED) ;
        ProxyConversation.setConversationState(conversationId, state) ;
        try
        {
            final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
            final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;
            getParticipantStub().cannotComplete(serviceURI, context) ;
           
            state.waitForCompletion(getTestTimeout()) ;
           
            final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
            terminator.cancel() ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType

        final BAInteropParticipantCompletedState state = new BAInteropParticipantCompletedState(BusinessActivityConstants.WSBA_ACTION_CLOSED) ;
        ProxyConversation.setConversationState(conversationId, state) ;
        try
        {
            final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
            final CoordinationContextType context = BAInteropUtil.createAtomicOutcomeCoordinationContext(getSourceCoordinatorURI()) ;
            getParticipantStub().participantCompleteClose(serviceURI, context) ;

            assertTrue("Participant did not issue Completed", state.waitForParticipantCompleted(getTestTimeout())) ;
           
            final BusinessActivityTerminator terminator = BAInteropUtil.registerTerminator(context, context.getIdentifier().getValue()) ;
            terminator.close() ;
           
            state.waitForCompletion(0) ;
        }
        finally
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.