Details
-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
Description
SourceForge Submitter: jboynes .
Sun's PetStore 1.3.1 application contains empty
ejb-relation-name entries such as:
<ejb-relation>
<ejb-relation-name></ejb-relation-name>
...
</ejb-relation>
Presumably this deploys fine on the reference
implementation. However, JBoss returns an error saying
that the ejb-relation-name must be unique.
According to the EJB2.0 spec: "The ejb-relation-name
element provides a unique name for a relationship." In
EJB2.1 this is expanded to "The name of the
relationship, if specified, is unique within the
ejb-jar file." Note the "if specified"
IMHO the spec isn't very precise here but, for
compatibility with the RI and PetStore, JBoss should
treat empty ejb-relation-name elements as if they were
not specified.