/** * clear current JPA context and transaction if JPAPlugin.autoTxs is true When using multiple * databases in the same request this method tries to commit/rollback as many transactions as * possible, but there is not guaranteed that all transactions are committed. * * @param rollback shall current transaction be committed (false) or cancelled (true) */ public static void closeTx(boolean rollback) { if (autoTxs) { JPA.closeTx(rollback); } }