Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: weird tomcat questions

Ralph Einfeldt

2004-01-08



See below:

> -----Original Message-----
> From: T K [mailto:tk@(protected)]
> Sent: Wednesday, January 07, 2004 9:03 PM
> To: tomcat-user@(protected)
> Subject: weird tomcat questions
>
>
> * How does scoping work in Tomcat?

What kind of scoping do you mean ?
- attribute scoping a la servlet spec ?
(application, session, request, page)

> * Why would you bother using a singleton when you're working
> with Tomcat?

The same reason as in any other application.
Tomcat doesn't enforce or restrict the use of singletons
in any way.

>
> Why would scoping be different in tomcat than any other
> servlet-complying container?

Why should it. After all tomcat is the reference implementation.
Any difference probably spec violation of the other container or
there is a disagreement on the interpretation or something is not
specified in the spec.
(There may be also errors in tomcat that violate the spec, but
regarding your question I would nearly bet that there are none)

> * What does a singleton have to do with a web container?

Nothing special. They serve the same purpose as in any
other application

>
> /tk
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.