Package com.jboss.transaction.wstf.interop.states

Examples of com.jboss.transaction.wstf.interop.states.Sc007RetryPreparedAbortState


     */
    public void test3_8()
        throws Exception
    {
        final String conversationId = getConversationId() ;
        final Sc007RetryPreparedAbortState state = new Sc007RetryPreparedAbortState() ;
        ProxyConversation.setConversationState(conversationId, state) ;
        try
        {
            final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
            final CoordinationContextType context = InteropUtil.createCoordinationContext(getSourceCoordinatorURI()) ;
            getParticipantStub().retryPreparedAbort(serviceURI, context) ;
           
            final CompletionCoordinatorParticipant participant = InteropUtil.registerCompletion(context, context.getIdentifier().getValue()) ;
            participant.commit() ;
            fail("Transaction rollback expected") ;
        }
        catch (final TransactionRolledBackException trbe)
        {
            state.waitForCompletion(getTestTimeout()) ;
        }
        finally
        {
            ProxyConversation.clearConversationState(conversationId) ;
        }
        assertTrue("Conversation did not complete successfully", state.isSuccessful()) ;
    }
View Full Code Here

TOP

Related Classes of com.jboss.transaction.wstf.interop.states.Sc007RetryPreparedAbortState

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.