tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: JNDI - What resources are loaded?
Date Fri, 28 Jun 2002 00:02:04 GMT


On Thu, 27 Jun 2002, August Detlefsen wrote:

> Date: Thu, 27 Jun 2002 16:13:11 -0700 (PDT)
> From: August Detlefsen <augustd123@yahoo.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>,
>      augustd@codemagi.com
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: JNDI - What resources are loaded?
>
> Is there a way to list all of the JNDI Resources that are loaded for a
> particular context?
>

You can certainly look at your own context, using the standard JNDI APIs
-- for example, javax.naming.Context.list() or
javax.naming.Context.listBindings().  The JNDI example servlet in the
examples webapp uses this approach.

For security reasons, you won't be able to see anybody else's context, or
modify the one that Tomcat sets up for you.

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message