Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Confused- Urgent!!!

 
Ranch Hand
Posts: 133
  • 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
 
Greenhorn
Posts: 25
  • 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.
 
Ranch Hand
Posts: 38
  • 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
  • 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
 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic