File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird: about how to deal with the situation book a record(booked) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "URLyBird: about how to deal with the situation book a record(booked)" Watch "URLyBird: about how to deal with the situation book a record(booked)" New topic
Author

URLyBird: about how to deal with the situation book a record(booked)

Ronggen Liu
Ranch Hand

Joined: Jul 29, 2007
Posts: 40
Hi guys,

how do you handle the scenario when the user book a record, wihich had been booked by the other user.

my solution is to define a checked exception BookFailedException, and throw it in business method bookRecord.

and handle this in client by getting the root cause of the excepiton, and raise a alert window to show the right information to the user.

what do you guys think about it?

Thank you!
Ronggen


SCJP 1.4,<br />SCJD Java 2,<br />...
Chih-Wei Lee
Ranch Hand

Joined: Feb 20, 2008
Posts: 129
Hi:
I have the similar solution for this issue.
I also define a custom exception to throw if the scenario occurs but
I throw this exception in my database implementation.


SCEA, SCJD, SCDJWS, SCWCD, SCJP
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: URLyBird: about how to deal with the situation book a record(booked)
 
Similar Threads
updateing
Booked Rooms
about log file
Update Issue
1) no cpu cycles 2) book a selected record 3) the general user interface level