[jboss-jira] [JBoss JIRA] Updated: (AS7-1921) <init-on-startup> in ejb-jar.xml doesn't suppress the EJB's @Startup annotation

David Lloyd (JIRA) jira-events at lists.jboss.org
Fri Sep 23 10:37:26 EDT 2011


     [ https://issues.jboss.org/browse/AS7-1921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Lloyd updated AS7-1921:
-----------------------------

           Assignee: Carlo de Wolf  (was: David Lloyd)
        Component/s: EJB
                         (was: EE)
    Forum Reference: http://community.jboss.org/message/628245#628245, http://community.jboss.org/message/628245  (was: http://community.jboss.org/message/628245#628245, http://community.jboss.org/message/628245)


> <init-on-startup> in ejb-jar.xml doesn't suppress the EJB's @Startup annotation
> -------------------------------------------------------------------------------
>
>                 Key: AS7-1921
>                 URL: https://issues.jboss.org/browse/AS7-1921
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.0.2.Final
>         Environment: GNU/Linux Ubuntu 11.04 x86
>            Reporter: Pedro Kowalski
>            Assignee: Carlo de Wolf
>              Labels: ejb-jar.xml, ejb3.1,, init-on-startup, singleton, startup
>
> For a Singleton EJB defined as follows:
> @Singleton(name="MyInit")
> @Startup
> public class MyInit {
>     @PostConstruct
>     void init() {
>         System.out.println("=========== INITIALIZING! ===========");
>     }
> }
> and for ejb-jar.xml fragment defined as follows:
>  
> <session>
>    <ejb-name>MyInit</ejb-name>
>    <init-on-startup>false</init-on-startup>
> </session>
> The MyInit EJB is still initializing and you can still see the '======= INITIALIZING! =====' part in the logs.
> It seems that the <init-on-startup> element's value is not suppressing the @Startup annotation.
> Exemplary application: http://community.jboss.org/servlet/JiveServlet/download/628245-41501/StartupAS7.jar

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list