title: how to set specific ejb jndi names in jboss 7.1.1
body: <p>my web application contains a few 2.x stateful and stateless session ejbs. but unlike previous jboss versions (as well as other major app servers), i am unable to specify an ejb jndi name in jboss 7.1.1. i have followed their docs by eliminating jboss.xml in favor of jboss-ejb3.xml, as well as starting the app server in full profile mode. </p>
  
  <pre><code>&lt;jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
                    xmlns="http://java.sun.com/xml/ns/javaee"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd
                       http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
                    version="3.1"
                    impl-version="2.0"&gt;
     &lt;enterprise-beans&gt; 
        &lt;session&gt;
           &lt;ejb-name&gt;MyEJB&lt;/ejb-name&gt;
           &lt;jndi-name&gt;MyEJB_JNDI_NAME&lt;/jndi-name&gt;
        &lt;/session&gt;
     &lt;/enterprise-beans&gt;
  &lt;/jboss:ejb-jar&gt;
  </code></pre>
  
  <p>however, the <strong>jndi-name</strong> in jboss-ejb3.xml is not taking hold, preventing me from setting my own custom ejb jndi name. does anyone know how to do this right?</p>