tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Kelkar" <a...@postmodern.com.au>
Subject RE: just one edit.
Date Tue, 21 May 2002 16:31:31 GMT
Are you talking about persistent data? I.e. Are you talking about database
concurrency?


-----Original Message-----
From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
Sent: Tuesday, 21 May 2002 5:39 AM
To: Tomcat Users List
Subject: RE: just one edit.

Hi, really apreciate your help. but What I mean is a case in web.
It is:

administrator A login to a site and modify data of some user

at the same time administrator B are modifying the data of the same user.

I would like some message for administrator A, something like a "sorry you
cant change these data right now" .

So I want to know if Tomcat could help me in some way

Thanks a lot!

-----Mensaje original-----
De: Mike Jackson [mailto:mjackson@cdi-hq.com]
Enviado el: lunes, 20 de mayo de 2002 13:32
Para: Tomcat Users List
Asunto: RE: just one edit.


You'll probably want to synchronize on a static object I think.  Something
like this:

        public class WhatEver {
                protected static Object lock = new Object();
                public void doStuff() {
                        sychronized( lock ) {
                                // do protected stuff here
                        }
                }
        }

--mikej
-=-----
mike jackson
mjackson@cdi-hq.com

> -----Original Message-----
> From: Emilio Miranda [mailto:emiranda@atos-ods.com.pe]
> Sent: Monday, May 20, 2002 11:15 AM
> To: Tomcat Users List
> Subject: just one edit.
>
>
>
> Hello, I am sorry if that is an offtopic.
>
> How can I be sure that only one user is changing some data at the time?
> could Tomcat help me on that?
> I mean , supouse that one user change a name an another try to
> change at the
> same time.
>
> Thanks a lot!
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message