jndi environmental context error

Discussions

EJB programming & troubleshooting: jndi environmental context error

  1. jndi environmental context error (1 messages)

    hi,

    I deploy the bean with ejb.CabinHome jndi context. When i try to get access through
    jndi.lookup("ejb.CabinHome"); it's working fine but when i access it through jndi.lookup("java:comp\env\ejb\CabinHome") it's not working.

    Could anyone tell what's the problem???I deploy the bean in weblogic server 5.1.
  2. Hi, ejb/CabinHome is a name in a "global context".
    Define an <ejb-ref> in web.xml for to try the lookup with
    java:comp/env/ejb/CabinHome (that is a "local context name").
    Sorry for my english.