wood burning stoves 2.0*
The moose likes JDBC and the fly likes multiple access to same data in database by multiple requests? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "multiple access to same data in database by multiple requests?" Watch "multiple access to same data in database by multiple requests?" New topic
Author

multiple access to same data in database by multiple requests?

sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69
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
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
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.


Ping & DNS - my free Android networking tools app
sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple access to same data in database by multiple requests?
 
Similar Threads
Database instances
Sockets
Lock/Unlock
FileLock & Platform dependencies
NX: URLyBird - Data Access