Skip to Content
author's profile photo
Former Member

JNDI Root Context

Hey everybody,

I'm writing a web application to display the complete JNDI tree from the root InitialContext. However all that appears to be in the tree are two entries: env and UserTransaction in the java:comp context. I find it difficult to believe this is the extent of the WAS JNDI tree. Any ideas?

Kevin

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Jul 23, 2004 at 04:00 AM

    Hi Kevin,

    by default you get a restricted (in terms of complexity) context by the WAS, which is specific for the current server application. Create a new InitialContext with Properties and add the value "domain" = "true" to the properties. Then you'll be able to access the complete "JNDI world".

    Hope that helps.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded