[jboss-jira] [JBoss JIRA] (AS7-2785) Do not call @PostConstruct multiple times on @Startup @Singleton bean.

Carlo de Wolf (Updated) (JIRA) jira-events at lists.jboss.org
Fri Nov 25 04:59:43 EST 2011


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

Carlo de Wolf updated AS7-2785:
-------------------------------

         Issue Type: Bug  (was: Feature Request)
    Forum Reference: http://community.jboss.org/message/635738?tstart=0  (was: http://community.jboss.org/message/635738?tstart=0)

    
> Do not call @PostConstruct multiple times on @Startup @Singleton bean.
> ----------------------------------------------------------------------
>
>                 Key: AS7-2785
>                 URL: https://issues.jboss.org/browse/AS7-2785
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.0.2.Final, 7.1.0.Beta1
>            Reporter: Dan Spasojevic
>            Assignee: Carlo de Wolf
>         Attachments: test.zip
>
>
> Given an @Startup @Singleton bean with a @PostConstruct method called Controller; when the Controller's dependencies are satisfied then its @PostConstruct method is called.
> Given another @Startup @Singleton bean with a @PostConstruct method called Client that has an @EJB injection of the Controller; when the Client's dependencies are satisfied then the @PostConstruct method of both the Controller and Client are called.
> This is true for each Client instance. So if there are N Client instances, there will be N+1 invocations of Controller's @PostConstruct. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list