[jboss-dev-forums] [Design of EJB 3.0] - Unique JNDI Names
ALRubinger
do-not-reply at jboss.com
Fri Jun 19 01:44:50 EDT 2009
@see https://jira.jboss.org/jira/browse/JBPAPP-2124
I'm constructing a (supposedly) unique String from the same formula we use for JNDI Names:
[earName-]ejbName
But as this shows, error in deployment when 2 EJBs in different JARs in an EAR share an ejb-name. At first I thought the deployment itself was illegal, but found this:
"EJB 3.0 Core Spec ejb-jar XSD Page 498" wrote : The ejb-name element contains the name of an enterprise bean. The name must be unique within the ejb-jar file.
Have we been wrong in this all along? Looks like non-unique EJB names are legal so long as they're in different JARs.
S,
ALR
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238657#4238657
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238657
More information about the jboss-dev-forums
mailing list