[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2223) Singleton postConstruct must run with RequiresNew transaction semantics

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Wed Dec 22 07:41:18 EST 2010


Singleton postConstruct must run with RequiresNew transaction semantics
-----------------------------------------------------------------------

                 Key: EJBTHREE-2223
                 URL: https://issues.jboss.org/browse/EJBTHREE-2223
             Project: EJB 3.0
          Issue Type: Bug
          Components: singleton
            Reporter: Carlo de Wolf
            Assignee: Carlo de Wolf
            Priority: Critical
             Fix For: depchain-1.0.0, EJB 3.1


EJB 3.1 FR 4.8.3:
Note that the container must start a new transaction if the REQUIRED (Required) transaction attribute is used. This guarantees, for example, that the transactional behavior of the PostConstruct method is the same regardless of whether it is initialized eagerly at container startup time or as a side effect of a first client invocation on the Singleton. The REQUIRED transaction attribute value is allowed so that specification of a transaction attribute for the Singleton PostConstruct/PreDestroy methods can be defaulted.

-- 
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