1 Reply Latest reply on Aug 7, 2013 6:53 AM by Jijo Mathew

    EJB Deployment issue with Local JNDI Name

    Jijo Mathew Newbie

      Hi,

       

      I am deploying and EJB application (EJB 2.1) in Jboss EAP 5.1.  The problem that I am facing now is my local JNDI names are not getting created in the java name sapce, insted they are getting created in the global name space. As it is the secured resource I dont want to make it globally accessiblile. 

      My ejb-jar.xml looks as below

       

      <entity>

      <ejb-name>MyBean</ejb-name>

      <local-home>pkg.MyBeanLocalHome</local-home>

      <local>pkg.MyBeanLocal</local>

      <ejb-class>pkg.MyBean</ejb-class>

      <persistence-type>Container</persistence-type>

      <prim-key-class>pkg.MyBeanKey</prim-key-class>

      <reentrant>false</reentrant>

      <cmp-version>2.x</cmp-version>

      <abstract-schema-name>SchemaName</abstract-schema-name>

      <cmp-field>

      <field-name>property1</field-name>

      </cmp-field>

      <cmp-field >

      <field-name>propert2</field-name>

      </cmp-field>

      </entity>

       

      and jboss.xml is

       

      <entity>

      <ejb-name>Sequenceblock</ejb-name>

      <local-jndi-name>ejb/myLocal</local-jndi-name>

      </entity>

       

      As I understand if we use <local-jndi-name> insted of <jndi-name> in jboss.xml , the it should be listed in the java name space? But it still  creating it in the global name space

       

      Any help on this please?

       

      Thanks

      Jijo