*/
public void testAT5_2()
throws Exception
{
final String conversationId = getConversationId() ;
final ATInteropRetryPreparedCommitState state = new ATInteropRetryPreparedCommitState() ;
ProxyConversation.setConversationState(conversationId, state) ;
try
{
final String serviceURI = ProxyURIRewriting.rewriteURI(conversationId, getParticipantURI()) ;
final CoordinationContextType context = ATInteropUtil.createCoordinationContext(getSourceCoordinatorURI()) ;
getParticipantStub().retryPreparedCommit(serviceURI, context) ;
final CompletionCoordinatorParticipant participant = ATInteropUtil.registerCompletion(context, context.getIdentifier().getValue()) ;
participant.commit() ;
state.waitForCompletion(0) ;
}
finally
{
ProxyConversation.clearConversationState(conversationId) ;
}
assertTrue("Conversation did not complete successfully", state.isSuccessful()) ;
}