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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>