File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confused- Urgent!!!

 
Anurag Mishra
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How I have to design my seat booking code on the server, and while booking seat the locking should be performed on server, than according to spec. the client should implement all the public methods, than their will be no need to use locl and unlock method on client side. Plz help me out , I am very-2 confused.
Anurag Mishra
 
Steven Martin
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client does NOT need to implement the lock or unlock functions, it calls it on the server.
You need to follow the
lock
read
modify
unlock
calls on the client side.
 
amit ahuja
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Steve,
i geuss client should not even call lock.. read.. modify... As locing is not required in LOCAL mode.
and my client is common.
According ot my understanding, we should implement locking mechanism in RemoteServer class, and hide everything from client.
What you say?
amit
Originally posted by steven martin:
The client does NOT need to implement the lock or unlock functions, it calls it on the server.
You need to follow the
lock
read
modify
unlock
calls on the client side.
 
Anurag Mishra
Ranch Hand
Posts: 133
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi steven,
The lock and unlock method is implemented on the server, but we have to call these methods from the client side.
Eg: My Code is:
void booking(record){
lock(int rec. to lock)
read.....
book....
unlock(int rec)
}
Is this the right idea to book seats from the client side.
Regard's
Anurag Mishra
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic