1 Reply Latest reply on Aug 16, 2003 8:35 AM by juhalindfors

    JNDI Problems

    nort

      Hi,

      I have some Problems to set up the JNDI Name of an EJB. It works only for the default (bean-name). But I want a JNDI name like test/TestEJB. The client should be able to request the remote or the local interface, but I cannot get it to work. Has someone a working and simple snpset of the ejb-conf files?

      Heres my ejb-jar.xml:


      <![CDATA[]]>

      <ejb-name>DPERessourceEJB</ejb-name>

      com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBHome
      com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBRemote
      <local-home>com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBLocalHome</local-home>
      com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBLocal
      <ejb-class>com.tsystems.ik.ejb.dpe.bo.RessourceEJB</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>

      <ejb-ref >
      <ejb-ref-name>ejb/DPERessourceEJB</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBHome
      com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBRemote
      <ejb-link>DPERessourceEJB</ejb-link>
      </ejb-ref>

      <ejb-local-ref >
      <ejb-ref-name>ejb/DPERessourceEJBLocal</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBLocalHome</local-home>
      com.tsystems.ik.ejb.dpe.bo.DPERessourceEJBLocal
      <ejb-link>DPERessourceEJB</ejb-link>
      </ejb-local-ref>



      and jboss.xml:


      <ejb-name>DPERessourceEJB</ejb-name>
      <jndi-name>ejb/dpe/DPERessourceEJB</jndi-name>
      <local-jndi-name>ejb/dpe/local/DPERessourceEJBLocal</local-jndi-name>
      <ejb-ref>
      <ejb-ref-name>ejb/DPERessourceEJBRemote</ejb-ref-name>
      <jndi-name>ejb/dpe/DPERessourceEJB</jndi-name>
      </ejb-ref>
      <ejb-ref>
      <ejb-ref-name>ejb/DPERessourceEJBLocal</ejb-ref-name>
      <jndi-name>ejb/dpe/local/DPERessourceEJBLocal</jndi-name>
      </ejb-ref>

        • 1. Re: JNDI Problems

          How is it not working? Do you see the home proxies bound under the <jndi-name> mapping when you invoke the list() operation on JNDIView MBean?

          Notice that a client will not be able to access local interfaces from an external process.

          -- Juha