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.
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:
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