>
> HttpSession session = req.getSession(true);
>
> synchronized(session) {
>     session.putValue("started", true);
> }

putValue() is already a syncronized method.

also, it is just storing the data into a Hashtable. ie: putValue is just a
wrapper around Hashtable.put() and Hashtable.put() is syncronized.

go look at apache jserv's source code. ;-) all this stuff is in
JServSession.java

-jon

___________________________________________________________________________
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

Reply via email to