[jboss-jira] [JBoss JIRA] (WFLY-13443) @Startup @Singleton Beans Constructed Multiple Times
Panagiotis Sotiropoulos (Jira)
issues at jboss.org
Thu May 7 18:09:00 EDT 2020
Panagiotis Sotiropoulos created WFLY-13443:
----------------------------------------------
Summary: @Startup @Singleton Beans Constructed Multiple Times
Key: WFLY-13443
URL: https://issues.redhat.com/browse/WFLY-13443
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 9.0.1.Final
Environment: All
Reporter: Panagiotis Sotiropoulos
Assignee: Panagiotis Sotiropoulos
When using @Startup and/or @Singleton to start a Bean on server startup, everytime a method is accessed or the bean is injected with @EJB, both Constructor and @Postconstruct are executed.
This happens multiple times, each time any component uses the Singleton bean.
This seems similar to an issue reported for JBOSS AS 7.x (see forum link reference below)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list