1 Reply Latest reply on Jul 25, 2013 2:45 PM by wdfink

    how to bind EJB 2.1 bean with JNDI name specified in jboss.xml

    kavcrus

      I have deployed a simple ear with a ejb 2.1 session bean and a war that utilizes this bean,

      The problems after deploying the ear, the session bean is bound to a module specific JNDI name (appname/modulename/beanname!fullclassname) and not to the JNDI name specified in jboss.xml in ejb jar.

      Is there any way to map the devlopers JNDI name to generated JNDI name or a way to bind the bean to developers JNDI name.

       

      JNDI name specified in jboss.xml

      <enterprise-beans>

              <session>

                <ejb-name>StudentDBBean</ejb-name>

                <jndi-name>remote/StudentDB</jndi-name>  

                <local-jndi-name>local/StudentDB</local-jndi-name>

                <call-by-value>false</call-by-value>

                <configuration-name>SessionPoolConf</configuration-name>

              </session>

      </enterprise-beans>

       

       

      Thanks,

       

      Kavin