public boolean begin() { try { if ( getStatus() == TransactionManager.STATUS_NO_TRANSACTION ) { // If there is no transaction then start one, we will commit within the same Command // it seems in spring calling getTransaction is enough to begin a new transaction currentTransaction = this.ptm.getTransaction( td ); return true; } else { return false; } } catch ( Exception e ) { logger.warn( "Unable to begin transaction", e ); throw new RuntimeException( "Unable to begin transaction", e ); } }
public boolean begin() { try { if ( getStatus() == TransactionManager.STATUS_NO_TRANSACTION ) { // If there is no transaction then start one, we will commit within the same Command // it seems in spring calling getTransaction is enough to begin a new transaction currentTransaction = this.ptm.getTransaction( td ); return true; } else { return false; } } catch ( Exception e ) { logger.warn( "Unable to begin transaction", e ); throw new RuntimeException( "Unable to begin transaction", e ); } }
public boolean begin() { try { if ( getStatus() == TransactionManager.STATUS_NO_TRANSACTION ) { // If there is no transaction then start one, we will commit within the same Command // it seems in spring calling getTransaction is enough to begin a new transaction currentTransaction = this.ptm.getTransaction( td ); return true; } else { return false; } } catch ( Exception e ) { logger.warn( "Unable to begin transaction", e ); throw new RuntimeException( "Unable to begin transaction", e ); } }