4 Replies Latest reply on Jul 24, 2003 5:20 AM by olof

    JNDI question

    olof

      Hi,

      sorry if my question is to stupid ;-)))

      I have made my first EJB. In my ejb-jar.xml, I name it 'HelloServer'. In my jboss.xml, I put 'ejb/HelloServer' as jndi-name.

      In my client, I can't access my EJB with ejb/HelloServer, but only with HelloServer.

      If I look at JNDIView, HelloServer is in Global section.

      Why ?

      Thank you !

        • 1. Re: JNDI question

          Are you sure your jboss.xml is correctly packaged into META-INF? Does it correctly map to your ejb-jar.xml.

          By default, if the deployer cannot find the JNDI mapping from jboss.xml it will use the EJB name from ejb-jar.xml ("HelloServer") as the global lookup name for the home proxy.

          -- Juha

          • 2. Re: JNDI question
            olof

            Thank you Juha.

            I retake a look at my xml files, but I don't see anything wrong...

            Could you take a look ?

            Thank you

            • 3. Re: JNDI question

              Filename should be lower case 'jboss.xml'

              -- Juha

              • 4. Re: JNDI question
                olof

                Argh ! I follow a tutorial that says 'create the META-INF/JBoss.xml file !!!

                Thank you !