• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple access to same data in database by multiple requests?

 
sandy sean
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I am using struts2 and jdbc in my web application. please hint me how i can prevent multiple access to same data in database by multiple requests?

thanks..
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking about read access or write access? And more importantly, why do you want to do this? There are multiple approaches, and some are more suited to certain scenarios than others.
 
sandy sean
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually what i meant was that suppose multiple users accessing same part in database(for write access),then will jdbc transaction support (autoCommit(),comit(),rollback().) will manage all that or i have to do other things also?

In simple i want to ask that there are various reads, locks, isolation levels etc.in database to prevent shared access.will all these get managed by using jdbc transaction support (autoCommit(),commit(),rollback()) in java program?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic