Visit Doug Lea`s website. You`ll find his concurrent package with
implementations of locks, semaphores and suff
For your problem you could use a singleton lock.

Peter

----- Original Message -----
From: Nguyen Van Hoang <[EMAIL PROTECTED]>
Date: Tuesday, October 2, 2001 6:24 am
Subject: Synchronized classes ...

>    Hi all,
>    I have 2 servlets (2 classes) trying to read a field in
> database and I want to synchronize this action. These 2 class also
> had a base class but as I know, each servlet will have a instance
> of base class for its own so I can not use synchronized methods in
> base class.
>    Is there any solutions for this problem ???
>    Any help is really appreciated.
>    H.
> ---------------------------------------------------------------
> Nguyen Van Hoang
> R&D Engineer
> Arawana Project
> MIS Team
> SSL Viet Nam Ltd.
>

___________________________________________________________________________
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