my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes how to do ticketmaster site seat reserved ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to do ticketmaster site seat reserved ?" Watch "how to do ticketmaster site seat reserved ?" New topic
Author

how to do ticketmaster site seat reserved ?

david chan
Ranch Hand

Joined: Jun 10, 2002
Posts: 46
Hi,
I have a similar problem as ticketmaster site need to solve. In the ticketMaster web site, when you try to reserved some seats, that seats will locked only for you during your transaction. So that there will be no two persons reserved same seats.
I am working on a JSP/Servlet/Oracle 8.1.7 and Struts 1.1 based web system (note, no EJB). My problem is I need to lock a particular record in Oracle for a period of time, so that only one user on the client side (browser site) can see this particular record.
As soon as one user get the record, all other users will be blocked (not able to read/write onto this record), so at anytime, only one user will working on on record.
Any advise how to do that in a easier way?
Thanks.
David
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Can't you do optimistic locking? Just have "first one in wins" in that case and allow simultaneous use.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to do ticketmaster site seat reserved ?