This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See JDBC connection and call setTransactionLevel, then start using the connection do all my work? Also, I am using weblogic6.1, anyone happens to know how am I able to control isoaltion level in CMT? Well, I get in some trouble on how to control the concurrenly accessing data. Any help is highly appreciated.
When you are BMT,you specify the transaction boundaries, but if you want the the transaction (unit of work which is inside the boundary) to be free from the concurrency problem, you need to specify the ISOLATION level in your deployment decriptor. If you are using weblogic you need to specify the ISOLATION level in your weblogic-ejb-jar.xml file (check the DTD). You need code the ISOLATIOn levels in your bean implementation, you just need to specify in the descriptor and the container should take care of managing the ISOLATION levels. Also 1 question i have is, If the ISOLATION level is an EJB spec why should we specify in the application server specific ejb-jar.xml files. what i feel is we should be specifying the same in bean's ejb-jar.xml file.
posted 15 years ago
Thanks for the feedback, yes, you are right, I double checked weblogic's doc, it covered this part, for both CMT and BMT. Now I need read more detail on bea's website. btw, you are the 2nd person i know last name is babu, the 1st is that poor restraunt owner in Singfield show Thanks a lot! Ying