No, I don't need it. I thought the original question sounded academic, and I
was just curious, having just read Cook's "WAP Servlets" in which he very
strongly advises against using static methods in servlets.
Of course, I've had to debug the code on his CD to get it to work.... :-)
Cheers!
Mark
----- Original Message -----
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 9:57 PM
Subject: Re: Startup parameters for a servlet
> >>> Access Denied <[EMAIL PROTECTED]> 22-Mar-01 2:28:56 AM >>>
> >Nick,
> >Won't using static methods and variables cause
> >unpredictable results if more than one thread is
> >running?
>
> Not if you do stuff properly no.
>
> But you only need to use them if you need to communicate between the
> 2 different instances.
>
> If you think you need that the best thing to do is ask a detailed
> question here (or on advanced-servlets-tutorial) because we can
> probably give you another way of doing things that will work better.
>
> The Perl motto is There's More Than One Way To Do It.
>
> And as far as the motto goes they're right. There always is.
>
>
> Nic
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html