JNDI context read only ??.

2003-10-08 Thread Michael Remijan
Hi,

I want to put an object into the JNDI context, but I get an exception that
says the context is read only.  Is there a way to make it writable?

Context ctx = (Context) new InitialContext().lookup(java:comp/env);
ctx = ctx.createSubcontext(glqso);
ctx.bind(ResourceManager, _rm);

thanks,
Mike


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI context read only ??.

2003-10-08 Thread Shapira, Yoav

Howdy,
The environment context is read-only to apps.  You can search the
archives for more information as this question has been posted several
times.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 3:15 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: JNDI context read only ??.

Hi,

I want to put an object into the JNDI context, but I get an exception
that
says the context is read only.  Is there a way to make it writable?

Context ctx = (Context) new InitialContext().lookup(java:comp/env);
ctx = ctx.createSubcontext(glqso);
ctx.bind(ResourceManager, _rm);

thanks,
Mike


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JNDI context read only ??.

2003-10-08 Thread Tim Funk
AFAIK, no. If you need to put stuff in the JNDI context, you can do that via 
this doc:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

-Tim

Michael Remijan wrote:

Hi,

I want to put an object into the JNDI context, but I get an exception that
says the context is read only.  Is there a way to make it writable?
Context ctx = (Context) new InitialContext().lookup(java:comp/env);
ctx = ctx.createSubcontext(glqso);
ctx.bind(ResourceManager, _rm);
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


rationale for making jndi context read only?

2002-11-30 Thread anywhere-info
Does any one knows  the rationale for making 
InitialContext(java:comp/env) read only ?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]