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

SessionBeanComponentDescriptionFactory silently ignores EJBs declared in ejb-jar.xml

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 7.1.0.Final
    • None
    • EJB
    • 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

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            ropalka Richard Opalka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: