Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 45364 invoked from network); 9 Sep 2002 10:57:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Sep 2002 10:57:23 -0000 Received: (qmail 9601 invoked by uid 97); 9 Sep 2002 10:57:30 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 9580 invoked by uid 97); 9 Sep 2002 10:57:30 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 9563 invoked by uid 98); 9 Sep 2002 10:57:29 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3D7C7E6E.9010603@joedog.org> Date: Mon, 09 Sep 2002 06:56:46 -0400 From: Tim Funk Organization: Human being User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Servlet multithreading design question References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N What are the Multi-threaded isses? Regardless that the abstract class does implement SingleThreadModel - you would still have 2 instances of BaseServlet since it is extended by OneServlet and TwoServlet. Who will need to be more specific in you question. Mathew Pole wrote: > If I create classes similar to the following, then I suspect that I will run > into multithreading issues, because OneServlet and TwoServlet will run in > the same JVM? Is this correct? > > public abstract class BaseServlet extends HttpServlet > implements SingleThreadModel > { > int value; > } > > public class OneServlet extends BaseServlet { > public void init (ServletConfig config) { > value = 1; > } > } > > > public class TwoServlet extends BaseServlet { > public void init (ServletConfig config) { > value = 2; > } > } > -- To unsubscribe, e-mail: For additional commands, e-mail: