• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Transaction Problem

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Thanks for giving suggestions,

I dont know whether this forum is right forum for this question. May be this question design related.

I have a problem i have a jsp which is displaying list of records as hyperlinks, Each hyperlink displays all the data related to the record in a popup window, Now i need to let only one user to view the popup window at a time, if one user is viewing the record i should not allow any other to view the same record instead need to display a message that the record is already viewed by another user.

Any suggestions will be appreciated.

Thanks,
Srilakshmi
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
More Information:

I need to lock a record with a user in a web application.
I am not using EJBs
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am waiting :-(
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
keep some flag in applicaiton context and chnage it accrondingly when you open the window and close the window.

for every user, first get this flag from applcation context, and verify it.
If "windowOpenedFlag="Y", then do not allow that user. else open the window. When the user closes the window, set the Flag value to "N" or space.

HTH
 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ram, Any other solutions please...
reply
    Bookmark Topic Watch Topic
  • New Topic