コード例 #1
0
 private void rollback() {
   if (writingCtx != null) {
     try {
       writingCtx.rollback();
     } catch (Exception e) {
       log.error("Rollback failed", e);
     }
   }
 }
コード例 #2
0
    @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);
    }
コード例 #3
0
 private void commit() throws Exception {
   if (writingCtx != null) {
     writingCtx.commit();
   }
 }