Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4263

Incorrect transaction attribute specified on an EJB implementing the SessionSynchronization interface

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.2.GA
    • Fix Version/s: None
    • Component/s: EJB3
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      Hello Seam Team,

      An incorrect transaction attribute SUPPORTS is specified on bean org.jboss.seam.transaction.EjbSynchronizations, located in jboss-seam.jar. The bean EjbSynchronizations implements the SessionSynchronization interface but according to the EJB 3.0 specification the allowed transaction attributes for its methods are: REQUIRED, REQUIRES_NEW, MANDATORY.

      JSR 220: Enterprise JavaBeansTM,Version 3.0
      EJB Core Contracts and Requirements
      Chapter 13.3.7 Specification of the Transaction Attributes for a Bean's Methods
      "If an enterprise bean implements the javax.ejb.SessionSynchronization interface, only the
      following values may be used for the transaction attributes of the bean's methods: REQUIRED,
      REQUIRES_NEW, MANDATORY.
      The above restriction is necessary to ensure that the enterprise bean is invoked only in a transaction. If
      the bean were invoked without a transaction, the container would not be able to send the transaction
      synchronization calls."

      Proposal for fix: change the transaction attribute of the EjbSynchronizations bean from SUPPORTS to REQUIRED.

      Best regards,
      Alexandrina

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Alexandrina Ivanova Alexandrina Ivanova
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: