>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 Bergsten

Hans,

     I don't understand why beans with session scope should be thread safe.
Could you explain this more in depth ? (With an example if possible ?)

     Thanks in advance,

Peter Collette

===========================================================================
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