14 Replies Latest reply on Oct 12, 2012 4:14 AM by jimbrady

    How do I set the JNDI name for EJB 2 in JBoss 7.1?

    Duane Silkworth Newbie

      We are migrating an application from JBoss 5.1 to JBoss 7.1 (using cr1b).  It uses an EJB 2 stateless session bean.  For JBoss 5.1, the jndi name for the bean was specified in jboss.xml, but in 7.1, this apparently does not take effect.  The EJB is deployed and registered with a default jndi name based on the deployment ear file and ejb jar file names and class name.  Is there a different way to set the jndi name for an ejb 2 session bean?