See below:

> -----Original Message-----
> From: T K [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 07, 2004 9:03 PM
> To: [EMAIL 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to