thanks for answering my question Jari.
I'm not an expert in Java and JSP, so I have more questions.
Session beans should be kept thread safe because a user can open multiple
browser session. Is the 'synchronized (this)' approach the only solution ? And
the situation of using frames with several requests participating the same
session objects. Here also 'synchronized(this) ?
Thanks in advance (also to Craig)
Peter
Jari Worrsley wrote
>Session scope beans are available to a user and their browser session (I'm 99%
sure
>that one session corresponds to connection from one browser program).
>So if a user has two browser windows open accessing pages on your site, then
they
>can potentially create simultaneous requests that access the same bean in
session
>scope. So session beans need to be thread safe.
>
><snip>
>
>> 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