Closed glassfishrobot closed 12 years ago
Reported by jrbauer
ldemichiel said: I believe that was the intent. I have made the edit.
Issue-Links: is related to EJB_SPEC-59
This issue was imported from java.net JIRA JAVAEE_SPEC-11
Marked as fixed on Thursday, September 13th 2012, 11:48:36 am
The EE6 specification, EE.8.5.2 paragraph 1, d.ii reads
"If the JAR file contains a META-INF/ejb-jar.xml file, or contains any class with an EJB component annotation (Stateless, etc.), consider the JAR file to be an EJB module."
To be consistent with the EJB specification, (and to prevent from falsely detecting a jar as EJB module without any EJBs because it contains other, possibly "leftover" EJB annotations) shouldn't the requirement be more specifically for an "EJB component-defining" annotation? I could be wrong, but I'm guessing that was the intent.
JIRA http://java.net/jira/browse/EJB_SPEC-59 was opened provide some consistency and completeness in the EJB 3.2 specification around component-defining annotations.