[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-2236) Singleton bean fails to call @PreDestroy method

Vidas . (JIRA) jira-events at lists.jboss.org
Tue Feb 1 04:10:39 EST 2011


    [ https://issues.jboss.org/browse/EJBTHREE-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579264#comment-12579264 ] 

Vidas . commented on EJBTHREE-2236:
-----------------------------------

Hi, jaikiran,

  Please correct if I'm wrong, but this fix seems to solve only NPE problem, but in above example I will still get EJBTransactionRequiredException, although my lifecycle method destroy() is marked with transaction attribute REQUIRES_NEW, as pointed out in EJB3.1 spec, section 4.8.3

> Singleton bean fails to call @PreDestroy method
> -----------------------------------------------
>
>                 Key: EJBTHREE-2236
>                 URL: https://issues.jboss.org/browse/EJBTHREE-2236
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: transactions
>         Environment: Apple Mac OS X, JBossAS 6.0.0.Final
>            Reporter: Vidas .
>            Assignee: jaikiran pai
>             Fix For: depchain-1.0.0-alpha-44
>
>
> JBoss fails to call @PreDestroy lifecycle method, annotated with transaction attribute REQUIRES_NEW, while @Singleton bean is annotated with transaction attribute MANDATORY.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list