]
Panagiotis Sotiropoulos reassigned WFLY-5097:
---------------------------------------------
Assignee: Panagiotis Sotiropoulos
@Startup @Singleton Beans Constructed Multiple Times
----------------------------------------------------
Key: WFLY-5097
URL:
https://issues.redhat.com/browse/WFLY-5097
Project: WildFly
Issue Type: Bug
Components: EJB
Affects Versions: 9.0.1.Final
Environment: All
Reporter: Davide Crudo
Assignee: Panagiotis Sotiropoulos
Priority: Major
Attachments: singleton.zip
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)