container/transaction/src/main/java/org/mobicents/slee/runtime/transaction/SleeTransactionManagerImpl.java
public boolean requireTransaction() {
		
		try {
			final Transaction tx = getTransaction();
			if (tx == null) {
				begin();
				return true;
			}
			else {
				final int status = tx.getStatus();
				if (status != Status.STATUS_ACTIVE && status != Status.STATUS_MARKED_ROLLBACK) {
					begin();
					return true;
				}		
			}						
		} catch (NotSupportedException e) {
			logger.error("Exception creating transaction", e);
		} catch (SystemException e) {
			logger.error("Caught SystemException in checking transaction", e);
		}
		return false;
	}
public boolean requireTransaction() {
		
		try {
			final Transaction tx = getTransaction();
			if (tx == null) {
				begin();
				return true;
			}
			else {
				final int status = tx.getStatus();
				if (status != Status.STATUS_ACTIVE && status != Status.STATUS_MARKED_ROLLBACK) {
					begin();
					return true;
				}		
			}						
		} catch (NotSupportedException e) {
			logger.error("Exception creating transaction", e);
		} catch (SystemException e) {
			logger.error("Caught SystemException in checking transaction", e);
		}
		return false;
	}
public boolean requireTransaction ( ) { try { final Transaction tx = getTransaction ( ) ; if ( tx == null ) { begin ( ) ; return true ; } else { final int status = tx . getStatus ( ) ; if ( status != Status . STATUS_ACTIVE && status != Status . STATUS_MARKED_ROLLBACK ) { begin ( ) ; return true ; } } } catch ( NotSupportedException e ) { logger . error ( "Exception creating transaction" , e ) ; } catch ( SystemException e ) { logger . error ( "Caught SystemException in checking transaction" , e ) ; } return false ; }
/*
(non-Javadoc)
@see org.mobicents.slee.runtime.transaction.SleeTransactionManager#requireTransaction()
/ * ( non - Javadoc )