This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 39568
    
  27
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 - updated with new look and Ping home screen widget
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
Lock/Unlock
Sockets
Database instances
FileLock & Platform dependencies
NX: URLyBird - Data Access