Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2634

SessionBeanComponentDescriptionFactory silently ignores EJBs declared in ejb-jar.xml

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.1.0.Final
    • Component/s: EJB
    • Labels:
      None

      Description

      If I'm trying to provide another EJB in ejb-jar.xml that is using different name than
      the name derived from its class (I'm trying to provide multiple EJBs based on same class
      with different names), my bean is silently ignored by the following piece of code:

      SessionBeanComponentDescriptionFactory.java
      ...
              final SessionType sessionType = sessionBean.getSessionType();
              if(sessionType == null && sessionBean instanceof GenericBeanMetaData) {
                  //TODO: this is a hack
                  return;
              }
      ...
      

      The code should

      • either detect bean type according to its associated class annotation (@Singleton, @Stateless) for EJB3 beans
      • or print warning or throw exception that <session-type> must be provided in ejb-jar.xml descriptor for EJB21 endpoints

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                ropalka Richard Opalka
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: