Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock Method On Server

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling Lock Method From Client
booking(String f_num){
try{
if(f_num=="-1"){
msg=intf.ticketBooking(-1, 0);
warningMessage(msg);
}
Locking Method On Server
public String book(int rec, int tickets)throws DatabaseException{
DataInfo info=null;
String msg=null;
try{
if(rec==-1)
{
lock(rec);
msg="Database locked";
}else
Record Modification
Is This idea is allright any better idea is always welcome
Anurag Mishra
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!