Discussions

General J2EE: problem with jndi names starting with java:/ in jboss

  1. Hi,

    I am facing problem looking up jndi names starting with java:/. Names in global namespace are working fine. The client seemingly searches the global namespace(and not the java:/ namespace) to find such names(starting with jndi:/) which eventually results in a "name not bound" error.
    Kindly suggest a solution.

    Thanks in advance.
    Srikanth.
  2. Try looking up with "java:", not "java:/"; for instance:

    initialContext.lookup("java:comp/ejb/MyEJB");

    Regards,
    Martin