javaee / javaee-spec

Java EE Platform Specification
https://javaee.github.io/javaee-spec
Other
389 stars 69 forks source link

EE Specification should be updated to require component-defining annotation for EJB module detection #11

Closed glassfishrobot closed 12 years ago

glassfishrobot commented 12 years ago

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.

glassfishrobot commented 12 years ago

Reported by jrbauer

glassfishrobot commented 12 years ago

ldemichiel said: I believe that was the intent. I have made the edit.

glassfishrobot commented 12 years ago

Issue-Links: is related to EJB_SPEC-59

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAVAEE_SPEC-11

glassfishrobot commented 12 years ago

Marked as fixed on Thursday, September 13th 2012, 11:48:36 am