Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2223

Singleton postConstruct must run with RequiresNew transaction semantics

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: