tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Schnack <feli...@ritterdosreis.br>
Subject RE: servlets
Date Tue, 28 Jan 2003 21:26:27 GMT
  So if I have just one <servlet> and <servlet-mapping> in my web.xml I
have guarantee of one instance, don't I?

On Tue, 2003-01-28 at 19:22, Craig R. McClanahan wrote:
> 
> 
> On Tue, 28 Jan 2003, Shapira, Yoav wrote:
> 
> >
> > >  If I write an servlet and DO NOT implement the SingleThreadModel, I
> > >have a guarantee that I'll have only one instance of it?
> >
> > No.
> 
> That's not quite right.
> 
> The servlet spec guarantees that you will get a single instance of a
> non-SingleThreadModel servlet PER <servlet> DEFINITION for that webapp.
> See Section SRV.2.2 of the Servlet 2.3 spec for the formal details.
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
-- 

Felipe Schnack
Analista de Sistemas
felipes@ritterdosreis.br
Cel.: (51)91287530
Linux Counter #281893

Centro Universitário Ritter dos Reis
http://www.ritterdosreis.br
ritter@ritterdosreis.br
Fone/Fax.: (51)32303341


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


Mime
View raw message