users@glassfish.java.net

InitialContext URL or related information

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Jul 2007 09:50:49 PDT

Assume for a moment that we have an initial context. Is there any way to get the url or any other identifiable information about the context and or the server on which it resides? I'm listing the environment, names and bindings, but there's nothing that tells me that this is the context from server A as opposed to the context from server B. Yes I understand that if I'm going to get a foreign context I have to know the url or other identifiable piece of information before I get there.

The situation we're running into here is that we have defined JDBC connection pools which we can see in the console, but an attempt to look them up in a JSP is failing and we can't see the JNDI entries in the listings. So, I wanted to verify that the context that we have hold of is the correct one.

Thanks,

JT
[Message sent by forum member 'jtryon' (jtryon)]

http://forums.java.net/jive/thread.jspa?messageID=226005