File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes locking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "locking" Watch "locking" New topic
Author

locking

Beny Na
Ranch Hand

Joined: May 26, 2004
Posts: 159
Hi ..
i am doing urlbird assignment...and still have problems.my lock/unlock only have one parameter(recNo).
My lock/unlock method using a method from java.rmi.server.RemoteServer.getClientHost() to determine the owner of the lock record.
But i don't know exactly the way SUN will test my lock/unlock method. Will they run the test from local or network(different computer) to test the lock/unlock method?
IF this question has been asked by someone please help me to refer the links...

Thank you
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi Beny,

It plays no role how your application will be tested. What is relay important is that your applications is running.
My advice is to separate the lock manager - so you can test it alone.
About the client identification just search after "client identification" and you'll get a tone of posts - most common one is to use a factory for your DAO classes (each client has its own DAO) and to use this instance (somehow) to identify your clients.

Regards M


SCJP, SCJD, SCWCD, OCPJBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: locking