Hi,


Is there a way to make the "java:comp/env" JNDI context (and its
subcontexts) writable in a release build of Tomcat 4? When I attempt to bind
an object I get a "read-only" exception.

I have a servlet which runs at startup and makes some objects available via
JNDI for later use. I *can* write to the root context (InitialContext) and
retrieving objects stored there works fine. However, I strive to make my
servlets and other classes as portable as possible. Resin (which I use for
development but not deployment) only allows writing to the "java:comp/env"
context.

So I want to store objects in "java:comp/env" and below. In order for that
to happen the context must be writable. Can anyone tell me if that is
possible?


Regards
-Laurens


Reply via email to