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 FBNS: Do I need to worry about using tokens for transaction processing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "FBNS: Do I need to worry about using tokens for transaction processing?" Watch "FBNS: Do I need to worry about using tokens for transaction processing?" New topic
Author

FBNS: Do I need to worry about using tokens for transaction processing?

Ian Warker
Greenhorn

Joined: Apr 05, 2005
Posts: 3
Hi again.

Another quick question. I come from a Struts-ey background and we commonly use JavaScript or transaction tokens to prevent users from submitting again before processing is complete. Typically this means that when they click buttons quickly ad repeatedly a warning dialog appears.

Welcome to the world of Swing...

Do I need to worry about this kind of thing in the GUI, or am I thinking too hard.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11432
    
  85

Hi Ian,

You probably do not want users booking the same seat twice , but how you handle it is up to you.

If you create a separate thread to do the booking, you will have a more responsive networked client, but you will have to do something to ensure that only one transaction is outstanding at any given time.

If you do not create a separate thread to do the booking then there is no way that the user will be able to book twice. But then there is the risk that the system may appear unresponsive if there are network problems.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FBNS: Do I need to worry about using tokens for transaction processing?