• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

locking

 
Beny Na
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic