Details
-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
Description
If I'm trying to provide another EJB in ejb-jar.xml that is using different name than
the name derived from its class (I'm trying to provide multiple EJBs based on same class
with different names), my bean is silently ignored by the following piece of code:
SessionBeanComponentDescriptionFactory.java
... final SessionType sessionType = sessionBean.getSessionType(); if(sessionType == null && sessionBean instanceof GenericBeanMetaData) { //TODO: this is a hack return; } ...
The code should
- either detect bean type according to its associated class annotation (@Singleton, @Stateless) for EJB3 beans
- or print warning or throw exception that <session-type> must be provided in ejb-jar.xml descriptor for EJB21 endpoints