@ Override public DbSession getDbSession ( ) { log . debug ( "Requesting db TX manager session" ) ; final DbJtxTransaction jtx = ( DbJtxTransaction ) jtxTxManager . getTransaction ( ) ; if ( jtx == null ) { throw new DbSqlException ( "No transaction is in progress and DbSession can't be provided. " + "It seems that transaction manager is not used to begin a transaction." ) ; } return jtx . requestResource ( ) ; }
Returns session from JTX transaction manager and started transaction .