Uploaded image for project: 'JBoss Metadata'
  1. JBoss Metadata
  2. JBMETA-330

@Startup annotation and init-on-startup element in ejb-jar.xml aren't merged into metadata correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-metadata-ejb-2.0.0-alpha-28, jboss-metadata-ejb-2.0.0-alpha-29
    • ejb
    • None

    Description

      Consider the following bean:

      @Singleton
      @Startup
      public class StartupBean
      {
      ...
      }
      

      and the corresponding ejb-jar.xml:

      ...
      <session>
        <ejb-name>StartupBean</ejb-name>
        <session-type>Singleton</session-type>
        <ejb-local-ref>
         ...
        </ejb-local-ref>
      </session>
      

      Notice that the ejb-jar.xml is used to configure some other aspects of the EJB, but it doesn't set/override the init-on-startup attribute of the bean. Effectively, the StartupBean should still be considered as a init-on-startup bean.

      However, this isn't the case currently. During merging of this annotation and xml metadata, the merged metadata turns up the StartupBean as a normal non init-on-startup bean. See the referenced forum thread for the complete details.

      Attachments

        Issue Links

          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: