Meaningless Drivel is fun!
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "locking" Watch "locking" New topic


Beny Na
Ranch Hand

Joined: May 26, 2004
Posts: 159
Hi ..
i am doing urlbird assignment...and still have 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: 918

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

I agree. Here's the link:
subject: locking
It's not a secret anymore!