-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck,
On 6/8/2009 1:51 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: how to force tomcat to make a single istance of a >> servlet >> >> Usually, only one instance of your servlet will be created. > > Unless using the SingleThreadModel (a really bad idea), the spec > allows only one instance of a servlet per JVM. I didn't know this was part of the spec... I just thought it made practical sense. Technically speaking, SRV.2.2 says that there must be only one instance "per servlet declaration" so I suppose you could trick the container into creating separate instances like this: <servlet> <servlet-name>name1</servlet-name> <servlet-class>foo.bar.BazServlet</servlet-class> </servlet> <servlet> <servlet-name>name2</servlet-name> <servlet-class>foo.bar.BazServlet</servlet-class> </servlet> > I wonder what the OP's real problem is? Yeah... when people ask questions like, it's usually because they are trying to do something they shouldn't be doing. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkoulP0ACgkQ9CaO5/Lv0PB0iACeIlxZo96LikSxzD94gDzJVvBL QRgAoItFLDUny7Iz1ul4/PZX25XwU+ak =0nhG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org