File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Lock with ClientID or remoteClient object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Lock with ClientID or remoteClient object" Watch "Lock with ClientID or remoteClient object" New topic

Lock with ClientID or remoteClient object

Ramesh kumaar
Ranch Hand

Joined: Mar 19, 2002
Posts: 146
Hello All,

Incase of database locking most of us are using clientID along with the recNo. Is it right to use the remoteclientobject(this) instred of ClientID. Does it make any difference.
Thomas Fly
Ranch Hand

Joined: Sep 09, 2002
Posts: 164
Each client will (or should!) have its own unique object by which it references the database, so what better choice for a ClientID?

Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
Stephane Weber
Ranch Hand

Joined: Mar 07, 2002
Posts: 110
I couldn't agree more with Thomas. At first I had a common RemoteData object for all clients.
You cannot imagine how much I was able to simplify my code and how fast some problems got solved when I switched to one client = one RemoteData, and use of this RemoteData as clientID.
I agree. Here's the link:
subject: Lock with ClientID or remoteClient object
It's not a secret anymore!