wood burning stoves*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes some questions during design,any reply is appreciated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "some questions during design,any reply is appreciated" Watch "some questions during design,any reply is appreciated" New topic
Author

some questions during design,any reply is appreciated

Robin Lin
Greenhorn

Joined: May 30, 2002
Posts: 2
a,do i need to add "sychronized" to bookseat() function as i had lockmanager to implements lock/unlock?
b,all the other function in remote interface which try to modify recodes should be add lock/unlock,such as in modify(){
lock();
localdb.modify
unlock
}?
c,how many remote database object i need build for client?each client got one remote db object or just one for all remote clients?
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
a) If multiple clients call bookseat() method, then you need to synchronize it.
b) lock() is something you need to outside of modify(). No need to add lock() in the modify() method
c) What do you mean by remote db object? I suggest you have a unique remote DataRemote instance. DataRemote class implements the interface which is also implemented by the Data class.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"RobinLin"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
I am pretty sure that that is probably your first and last name, and will just need to seperate the two.
Thanks! and welcome to the JavaRanch!
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: some questions during design,any reply is appreciated
 
Similar Threads
Locks without Client IDs?
Passed!
Lock/Unlock on Client side or Server Side
how can I know client died from server class??
Lock/Unlock not in Data class..ok??