RE: Tomcat and Static Variables

2003-08-18 Thread Shapira, Yoav
Howdy, It claims that aliases (I may be wrong on this, it's hard to decipher the difference between JWS and Tomcat lingo) will create different instances to the target Servlet, but static variables are recognized. So access to one servlet instance might result in: The servlet container

Re: Tomcat and Static Variables

2003-08-18 Thread John Blanco
The servlet container may (and tomcat does last I checked) create one instance of a (non-SingleThreadModel) servlet for every servlet tag in web.xml. So just have two servlet tags with different servlet-name but same servlet-class in your web.xml. You don't need two contexts for this.

Tomcat and Static Variables

2003-08-17 Thread John Blanco
I've got a book (extra credit to who can name it) which uses a Counter servlet as an example of how servlet containers handle static variables. It claims that aliases (I may be wrong on this, it's hard to decipher the difference between JWS and Tomcat lingo) will create