Hi,


I just read that "java:comp/env" is supposed to be read-only. Resin does not
follow this rule. Tomcat's behaviour in this is correct. Disregard my
question


Regards
-Laurens

-----Original Message-----
From: Laurens Fridael [mailto:[EMAIL PROTECTED]]
Sent: maandag 27 augustus 2001 8:59
To: Tomcat mailing list
Subject: Tomcat 4, making "java:comp/env" writable


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