> From: James Black [mailto:[EMAIL PROTECTED] > Subject: Re: making a singleton servlet > > My plan is to try: > public static class SomeServlet extends HttpServlet { ... }
You can't use the modifier "static" there (only with internal classes). > That way there should only be one servlet. My rereading of the spec shows there will be only one servlet, unless you have a distributed environment. However, there will be multiple concurrent requests utilizing the same servlet instance. You can control the amount of concurrency with the various thread-oriented attributes of the <Connector> tag. Attempting to limit concurrency to one is unrealistic. The Tomcat doc covers that as well as configuring database connections. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]