rstoya05-aop wrote:
Quote:
container's BMT and CMT seems don't provide any function to set transaction level. why?
JTA manages global transactions like two-phase commits. It tells Hibernate when to begin a transaction and when to commit. But it's Hibernate that actually does the work of starting and ending transactions.
I believe the transaction isolation can be set through Hibernate even when using JTA. However, what you want to do is change it on the fly and that may be harder to do if using declarative transaction management because it's JTA that's managing the transactions.
Have you tried finding a JTA specific forum and posting a question there?
now I get understanded JTA and hibernate(or DataSource)'s relationship. you are right, and when using CMT, I can't control transaction level be set back, because I can't control traction's begin and end. thank you very much, this problem puzzled me long time.
So as the result , CMT and transaction level can't worked together. I ever post this problem to theserverside.com, but no any answer. thank you.