Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.