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 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 Head First Android this week in the Android 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

some questions during design,any reply is appreciated

Robin Lin

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(){
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

Joined: Feb 05, 2001
Posts: 17271

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
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!

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: some questions during design,any reply is appreciated
It's not a secret anymore!