File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 62
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: 35253
    
    7
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.


Android appsImageJ pluginsJava web charts
sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 62
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: multiple access to same data in database by multiple requests?
 
Similar Threads
NX: URLyBird - Data Access
Lock/Unlock
Sockets
Database instances
FileLock & Platform dependencies