private void rollback() { if (writingCtx != null) { try { writingCtx.rollback(); } catch (Exception e) { log.error("Rollback failed", e); } } }
@Override public void soap(SoapMessage message) throws Exception { if (writingCtx == null) { MessageQueue queue = AsyncDB.getMessageQueue(requestServiceId.getClientId()); writingCtx = queue.startWriting(); consumer = writingCtx.getConsumer(); } consumer.soap(message); }
private void commit() throws Exception { if (writingCtx != null) { writingCtx.commit(); } }