if(notSession && batchingManager.isBatchInProgress() == false) batchingManager.startBatch(); doTx = true; batchingManager.setBatchRollbackOnly(); batchingManager.endBatch();
private boolean startBatchTransaction() throws ServletException { boolean started = false; try { if (this.tm != null && this.tm.isBatchInProgress() == false) { this.tm.startBatch(); started = true; } } catch (RuntimeException re) { throw re; } catch (Exception e) { throw new ServletException("Failed to initiate batch replication transaction", e); } return started; }