Java Virtal Machine.net

[ News ] rss

March 10, 2010

JavaOne: Call for Papers closes this Sunday, March 14. Entry posted to my new blog.

More »

March 09, 2010

rkusterer: Time to Join the NetBeans Community Testing Programs!. On Twitter, there was a tweet from @javatools asking "Want to help testing NetBeans and have your name included in the NetBeans source code?" and pointing us to rkusterer's Time to Join the NetBeans Community Testing Programs! page: "The NetBean...

More »

March/2010
SunMonTueWedThuFriSat
 1 2 3 4 56
7 8 9 10 11 1213
14151617181920
21222324252627
28293031   

[ Archives News
for 'Java Technology' ]

home > news > java technology > carol mcdonald describes locking and concurrency in jpa 2.0

Carol McDonald Describes Locking and Concurrency in JPA 2.0

In her lastest Enterprise Tech Tip, Carol McDonald writes about Locking and Concurrency in Java Persistence 2.0. I'm pointing out Carol's article in Java Today, but I'd also like to talk a bit more about what she covers here. If you haven't done a lot of work with databases, in particular what I'd call "low-level" work on tuning the performance of databases in an enterprise environment, then it's possible that you've never really given much thought to the problems of locking and concurrency. Yet, these are fundamental to the reliablility of database transactions. As Carol says: Locking is a technique for handling database transaction concurrency. When two or more database transactions concurrently access the same data, locking is used to ensure that only one transaction at a time can change the data. Sounds simple enough, right? But, it's not quite that simple, because a single method for performing locking may work well under some conditions, and poorly under others. Carol explains: There are generally two locking approaches: optimistic and pessimistic. Optimistic locking assumes that there will be infrequent conflicts between concurrent transactions, that is, they won't often try to read and change the same data at the same time. In optimistic locking, the objective is to give concurrent transactions a lot of freedom to process simultaneously, but to detect and prevent collis...


Date: September, 15 2009
Url: http://www.java.net/blog/editor/archive/2009/09/14/carol-mcdonald-describes-locking-and-concurrency-jpa-20


Others News

Leave a Reply

Name (required)
Mail (will not be published) (required)
Website
You don't see letters?

Enter the code shown above (required)


Related

©2002-2008Java-Virtual-Machine.net :Java Archive: :Solve Crosswords de fr ru pt es : JVM: :Free PC Download: :Micrometer: