> -----Original Message-----
> From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 13, 2002 2:13 AM
> To: [EMAIL PROTECTED]
> Subject: ServletContext object
>
>
> Are the objects put in ServletConext synchronized?
No they are not synchronized. Many users can concurrently access
ServletContext instance.
You could implement the SingleThreadModel in a servlet for gaining the
purpose of synchronization.
> Say I have a ServletContext ctx. If I do,
> ctx.setAttribute("MYOBJECT", hashTableObject);
> where hashTableObject is a Hashtable (or any other
> instantiated object) then is the object
> hashTableObject synchronized both for reads and
> writes?
Hashtable is synchronized unlike the Collections implementation.
I hope i get you correctly.
> TIA
> Santosh
Vikram.
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>