ot;
(table-locking, perhaps, or row-locking) returns a guaranteed-unique primary
key.
-Original Message-
From: Brian Long <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, October 29, 1999 7:14 AM
Subject: Re: Question that is puzzling me
>depen
TED] <[EMAIL PROTECTED]>
Date: venerdì 29 ottobre 1999 15.27
Subject: Re: Question that is puzzling me
>Thankyou very much guys for your feedback. I have found a solution which i
want
>to share with you, so that in future if you
>guys run into the same problem, you will have an idea of h
depends - is the primary key a shared resource? usually for this kind of thing it
would be, so the answer in that case is no, you don't get threadsafety for free.
one simple way to ensure that you don't give out the same value to two (or more)
clients is to synchronize the method that you use to
e will lead to a solid design.
Cheers,
Amar..
Nicholas Barrington <[EMAIL PROTECTED]> on 10/28/99 08:15:14
PM
Please respond to Nicholas Barrington <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Amarnath Nanduri/IT/VANCPOWER)
Subject: Re: Question that is puzzling me
If
ich holds your "number of
current records", which is then updated every time a user submits a query.
Hope this helps!
-Original Message-
From: Nanduri Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 29, 1999 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Question that is puzzl
On Thu, 28 Oct 1999, Nanduri Amarnath wrote:
> I am calling a servlet from a jsp. The servlet implements the
> SingleThreadModel.
> My question is... if different people hit this page simultaneously, will i still
> be getting unique primary keys for every person
> (or) if not is there a bett
You may use Java 'synchronized' methods.
swamy
-Original Message-
From: Nanduri Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 28, 1999 11:26 AM
To: [EMAIL PROTECTED]
Subject: Question that is puzzling me
Guys/Girls ,
I am calling a servlet from a jsp. T
nath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 28, 1999 3:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Question that is puzzling me
The problem with the private static int reckey variable is that if i stop
and
re-start the web server , again i
will be doing the count from 0 ( instead of from whe
problems, in the long run. Can
you please elaborate on that. Thankyou.
Cheers,
Amar..
"Campbell" <[EMAIL PROTECTED]> on 10/28/99 03:10:11 PM
To: Amarnath Nanduri/IT/VANCPOWER@VANCPOWER, [EMAIL PROTECTED]
cc:
Subject: Re: Question that is puzzling me
I think this
the
long run.
Phil
-Original Message-
From: Nanduri Amarnath <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, October 28, 1999 12:56 PM
Subject: Question that is puzzling me
>Guys/Girls ,
> I am calling a servlet from a jsp. The serv
Guys/Girls ,
I am calling a servlet from a jsp. The servlet implements the
SingleThreadModel.
The servlet has a doPost() method that writes data to a table in the database.
The primary key
for each row of this Table is got by counting the ( number of rows in the Table
+ 1 ). This is done in
11 matches
Mail list logo