public void commit(String transactionId) throws StompException { StompControlFrame frame = StompFrames.newCommitFrame( transactionId ); ReceiptFuture future = sendFrame( frame ); try { future.await(); } catch (InterruptedException e) { throw new StompException( e ); } catch (ExecutionException e) { throw new StompException( e ); } }