2 Replies Latest reply on Jan 26, 2003 7:36 PM by Juha Lindfors

    JNDI Name - Local Beans

    georg Newbie

      It's just a bit confusing:

      How does jboss handle local-component-jndi-names and how do I access these local components correct?
      I couldn't get it work properly. Somethings messed up with the names.


      The Only way I managed to access the local component was to insert a link in the ejb-jar.xml and access the Bean via the link. To mention: The jndi name of the reference wasn't the name I expected(there was a "local/" in front of the Bean name).

      The direct way, namely accessing the local-bean via the specified jndi name in jboss.xml didn't work.


      <ejb-name>FileStorageBeanLocal</ejb-name>
      <jndi-name>FileStorage</jndi-name>

      Really I looked up FileStorage and got every-time I did the lookup a

      15:21:08,454 ERROR [STDERR] javax.naming.NameNotFoundException: FileStorageBean not bound

        • 1. Re: JNDI Name - Local Beans
          georg Newbie

          Sorry for the html. Here is it again

          It's just a bit confusing:

          How does jboss handle local-component-jndi-names and how do I access these local components correct?
          I couldn't get it work properly. Somethings messed up with the names.
          The Only way I managed to access the local component was to insert a link in the ejb-jar.xml and access the Bean via the link. To mention: The jndi name of the reference wasn't the name I expected(there was a "local/" in front of the Bean name).

          The direct way, namely accessing the local-bean via the specified jndi name in jboss.xml didn't work.


          <ejb-name>FileStorageBeanLocal</ejb-name>
          <jndi-name>FileStorage</jndi-name>


          Really I looked up FileStorage and got every-time I did the lookup a

          15:21:08,454 ERROR [STDERR] javax.naming.NameNotFoundException: FileStorageBean not bound

          • 2. Re: JNDI Name - Local Beans
            Juha Lindfors Master

            should be <local-jndi-name> ?