• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: starting on the RMI side

 
Jacques Bosch
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys. I'm done with my Data class singleton, and with the client GUI up to the point where I need data.
Now for connecting the two. RMI and direct.
Just want a few pointers.
The way I think:
In the db package I create a Client interface with book and find methods.
I then write two implementations of this, one for RMI and one for direct.
Right so far?
Anybody have a few more detailed tips on how to go about doing this.
Also, with my Data class's updateRecord method, for instance, it requires a lock, update, unlock. Should I handle this on the client side, or is that better on the DB side?
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jacques,
That sounds like a good strategy. Given what you've written it sounds like you'd be better off doing the locking and unlocking on the server-side.
Where locking should be done is one the liveliest controversies on this forum and there are strong advocates for client-side as well as server-side. You can search the forum for "client AND locking," or "server AND locking" to find some of these threads. I'm not sure I can add anything to that already extensive discussion. Personally, I did my locking on the client-side because it seemed more natural to me.
Hope this helps,
George
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic