hibernate transaction safety (with, without JBoss)
Posted
by
Andy Nuss
on Stack Overflow
See other posts from Stack Overflow
or by Andy Nuss
Published on 2011-01-11T21:48:51Z
Indexed on
2011/01/11
21:53 UTC
Read the original article
Hit count: 189
Hi,
I am currently using just Hibernate and tomcat (no JBoss), and have hibernate transactions which I'm not clear on what transaction safety level I'm actually using, especially for those which read and get values and then update them). Thus I might be getting dirty reads?
So I'm going to start having to study my transactions that require non-dirty reads, and make sure that (1) hibernate controls the transaction safety level of those transactions properly, and (2) be able to still have those transactions where dirty reads are ok.
Do I need to install Hibernate with JBoss to control transaction safety levels? If so, what's the easiest way to do this without dramatically changing my application to use the J2EE apis, as I am currently using the basic Hibernate apis. Or better, can I get JTA control with Hibernate without using JBoss?
Andy
© Stack Overflow or respective owner