private boolean isLifecycleCallbackGlobalTx ( int methodId ) { EJBMethodInfoImpl [ ] methodInfos = home . beanMetaData . lifecycleInterceptorMethodInfos ; return methodInfos != null && methodInfos [ methodId ] . getTransactionAttribute ( ) == TransactionAttribute . TX_REQUIRES_NEW ; }
Returns true if the specific lifecycle callback should run with a global transaction .