1 Reply Latest reply on Sep 25, 2003 12:25 PM by Adrian Brock

    Referencing JNDI names in web.xml

    brianmcglothlen Newbie

      Suppose I'm currently in a session bean trying to create another session bean. I'd like to be able to create this session bean using a jndi lookup where I have not declared the <ejb-ref> for it in the ejb-jar.xml. I was thinking I could do this if I declared the session bean in the web.xml first, but that doesn't seem to do any good.

      Is this possible?

      I think I read somewhere that you must always have an <ejb-ref> from within a session or entity bean to lookup another bean.

      - brian