tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: servlets
Date Thu, 30 Jan 2003 06:49:06 GMT

"Craig R. McClanahan" <craigmcc@apache.org> wrote in message
news:20030128135810.S54544-100000@icarus.apache.org...
>
>
> On 28 Jan 2003, Felipe Schnack wrote:
>
> > Date: 28 Jan 2003 19:26:27 -0200
> > From: Felipe Schnack <felipes@ritterdosreis.br>
> > Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> > Subject: RE: servlets
> >
> >   So if I have just one <servlet> and <servlet-mapping> in my web.xml
I
> > have guarantee of one instance, don't I?
>
> Yes, as long as the servlet doesn't implement SingleThreadModel.
>
> MVC frameworks like Struts, where the controller is a singleton, rely on
> this.

<pedantic>
This is true if you have just one <servlet>.  You can have 1001
<servlet-mapping>s, and it will still be true.
</pedantic>

>
> Craig




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message