• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Problem

 
Srilakshmi Vara
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
I am waiting :-(
 
Ram kovis
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Ram, Any other solutions please...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic