Robert Young wrote:
>
> none of the documentation i've found addresses the problem(?) of bean structure and
> the execution model for servlets:  a JSP page gets turned into a servlet; one
servlet,
> one [multi-threaded access] instance; instance variables by the ton in a bean.  it
sounds
> like such an architecture is bound to fail without lots of  synchronized  , but that
> keyword is not mentioned.  is there an answer??

As long as you use page or request scope for your beans, only one thread is
using them so there are no multithreading concerns. But for session and
application scope beans you must make sure they are thread safe.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to