• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to do ticketmaster site seat reserved ?

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't you do optimistic locking? Just have "first one in wins" in that case and allow simultaneous use.
Kyle
 
reply
    Bookmark Topic Watch Topic
  • New Topic