How can we put together different resource in a unique and atomic transaction? We’re speaking about Jta and distributed transactions, not only with Dao resources but also including a Jms resource.
Understanding the isolation level of the database transaction is not so obvious as you might think. Let me lead you through the different isolation type in the way to find out the correct one to use in your next Dao application.
Have you ever tried to have to link, in unique transaction, two or more datasources from different databases? Java Transaction API (JTA) helps you to achieve this result.
In this article I’ll try to show how use it with spring framework and Jboss application server, obviously, with a little practical example.
Many times, and in many classes, the access to the database should be done with transaction support, especially if you are writing in.
If you are using Spring, you can access the Transaction Manager supported by it. In this post we’ll look inside this in classic web example.