File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lock with ClientID or remoteClient object

 
Ramesh kumaar
Ranch Hand
Posts: 146
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
-rameshkumar
 
Thomas Fly
Ranch Hand
Posts: 164
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each client will (or should!) have its own unique object by which it references the database, so what better choice for a ClientID?
 
Stephane Weber
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Stephane
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic