SingleThreadModel is evil! Don't change the threading model it lulls you
into a false sense of security, yes this will make your instance data thread
safe, but any access to session or application (ServletContext) data will
still need to be done in a thread safe manner.
Use the synchronisation mechanism of your choice. The main rule with
synchronization (apart from getting it right ;-) )is to only synchronize
where necessary and to keep time in synchronized blocks as short as
possible,
Kevin Jones
DevelopMentor
www.develop.com
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Pablo Iaria
> Sent: 25 September 2000 14:12
> To: [EMAIL PROTECTED]
> Subject: Re: Concurrence issue
>
>
> What's the best way to do that ? using the synchronized
> statement, changing
> the threading model or using semaphores ?
>
> Thanks,
> Pablo.-
>
> ----- Original Message -----
> From: "Kevin Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 25 September, 2000 9:43 AM
> Subject: Re: Concurrence issue
>
>
> > yes
> >
> > Kevin Jones
> > DevelopMentor
> > www.develop.com
> >
> > > -----Original Message-----
> > > From: A mailing list about Java Server Pages specification
> and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Pablo Iaria
> > > Sent: 25 September 2000 12:58
> > > To: [EMAIL PROTECTED]
> > > Subject: Concurrence issue
> > >
> > >
> > > Hi all,
> > > If I declare some variables using <%!...%> tags, do I have to
> > > take care
> > > about the concurrent acces to these variables ?
> > >
> > > Thanks,
> > > Pablo.-
> > >
> > > ==================================================================
> > > =========
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > > http://java.sun.com/products/jsp/faq.html
> > > http://www.esperanto.org.nz/jsp/jspfaq.html
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> ==================================================================
> =========
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets