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

Ejb3DescriptorHandler incorrectly assumes a non-stateless session bean to be a stateful session bean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EJB3_1 1.0.5
    • 1.1.22, Plugin 1.0.19, EJB3_1 1.0.4
    • core
    • None
    • jboss-ejb3-core:1.2.3

    Description

      Ejb3DescriptorHandler which creating containers out of metadata, incorrectly creates a StatefulContainer if the metadata is of type session and not a stateless bean:

      if (enterpriseBean.isSession())

      { if (((JBossSessionBeanMetaData) enterpriseBean).isStateless()) return EJB_TYPE.STATELESS; else return EJB_TYPE.STATEFUL; }

      This no longer is a valid assumption because of the new Singleton bean in EJB3.1. As a result, this piece of code incorrectly ends up creating a stateful container for a singleton bean.

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: