{
final String messageId = MessageId.getMessageId() ;
final AddressingProperties addressingProperties = AddressingHelper.createRequestContext(serviceURI, messageId) ;
final RequestCallback callback = new RequestCallback() ;
final InitiatorProcessor initiator = InitiatorProcessor.getInitiator() ;
initiator.registerCallback(messageId, callback) ;
try
{
AsyncParticipantClient.getClient().sendCompletionCommit(addressingProperties, coordinatorURI) ;
callback.waitUntilTriggered(15000) ;
}
finally
{
initiator.removeCallback(messageId) ;
}
handleCallback(callback) ;
}