private void suspendIfAssoaciatedWithThread ( ) throws SystemException { // if there is a tx associated with this thread and it is this one // then suspend it to dissociate the thread (dumb feature?!?! of jboss ts) final SleeTransaction currentThreadTransaction = transactionManager . getSleeTransaction ( ) ; if ( currentThreadTransaction != null && currentThreadTransaction . equals ( this ) ) { // lets use the real tx manager directly, to avoid any other procedures transactionManager . getRealTransactionManager ( ) . suspend ( ) ; } }
Some operations require that the transaction be suspended