Cezar Totth wrote:

> On Tue, 18 May 1999, David Mossakowski wrote:
>
>
> > You can store variables that will be common to all threads by putting them in
> > context. (context.setAttribute())
> But then any other servlet (and those written at evil.programmers.org)
> will be able to grab that public data. (let say we talk about a database
> pool wich gives access to company's accounting tables)
>

The data stored with context.setAttribute() is only "public" within a particular
servlet context.  If you don't trust the code in a servlet written by someone else,
set it up in it's own context and you don't have this risk.

>
> Cezar.
>

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to