Hi All:
I have some doubts on the synchronized(this) . I know that if we do some
assignments operations on the nonlocal variables of service(dopost.doget)
method , then we may have to synchronize those pieces, if we think it could
cause major problem.
My question is : i have a parentservlet i have a private static object data
memeber to do some DataBase Update , in my childservlet i do db update which
i did synz. I thought my DB object is non local to my service method and so
it should be taken care , can anyone tell me my way is right or wrong.
class Parent
{
protected static ouuter ms_out = new ouuter();
...........................
}
class child extends parent
{
synchronized(this)
{
... variable setting
ms_Out.updateOptInOutInfo(fSession.m_id,OptInOutStatus.ACCEPTED,fSession.m_s
ystem_source); // this i want to sync , right / ;
}
}
Any kind of help is appreciated.
Thanks
Asha
___________________________________________________________________________
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