-
1. Re: jndi-name not recognized, JBoss uses bean name for globa
darranl Jan 14, 2005 5:24 AM (in response to johnv)Are you sure that your jboss.xml file is in your jar in the same location as the ejb-jar.xml?
It looks as if JBoss is not seeing the configuration file, rather than ignoring a specific setting in the file. -
2. Re: jndi-name not recognized, JBoss uses bean name for globa
johnv Jan 14, 2005 11:05 AM (in response to johnv)Yes. I just double checked that. jboss.xml and ejb-jar.xml are at the same location. For a really base test case I deployed the JBossDukesBank.ear I built using the JBoss getting started tutorial. This reveals the same problem, the names listed in the global JNDI namespace are the bean names not the names specified as jndi-name in the jboss.xml. For example:
<ejb-name>CustomerBean</ejb-name>
<jndi-name>MyCustomer</jndi-name>
The JMX Console ->JNDIView ->list() under GlobalJNDI Namespace shows:
+- local (class: org.jnp.interfaces.NamingContext)
| +- CustomerBean (proxy: $Proxy54 implements interface com.sun.ebank.ejb.customer.CustomerHome)
MyCustomer does not appear anywhere on that JNDIView list() page