Hi,
I came across these while reading HFSJ:
The best way is to synchronize on the ServletContext object.
synchronized (getServletContext())
This make the context thread-safe ONLY if ALL the servelts synchronize on the context.
However, I am bit confused abt the last line "This make the context thread-safe ONLY if ALL the servelts synchronize on the context"
can anyone explain this?
Thanks,
I came across these while reading HFSJ:
The best way is to synchronize on the ServletContext object.
synchronized (getServletContext())
This make the context thread-safe ONLY if ALL the servelts synchronize on the context.
However, I am bit confused abt the last line "This make the context thread-safe ONLY if ALL the servelts synchronize on the context"
can anyone explain this?
Thanks,