Details
-
Bug
-
Resolution: Done
-
Major
-
jboss-metadata-ejb-2.0.0-alpha-28, jboss-metadata-ejb-2.0.0-alpha-29
-
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
- is related to
-
JBMETA-329 Using ejb-jar.xml for @Singleton bean
- Closed