Spring – Multiple transaction manager in an application

In the application context declare the following:-

In the Java code do the following as shown below as code snippet:-

Page Visitors: 2545

The following two tabs change content below.
Tomcy John

Tomcy John

Blogger & Author at javacodebook
He is an Enterprise Java Specialist holding a degree in Engineering (B-Tech) with over 10 years of experience in several industries. He's currently the Senior Technical Engineer at Emirates Group IT since 2005. Prior to this he has worked with Oracle Corporation and Ernst & Young. His main specialization is on various web technologies and acts as chief mentor and Principal Architect to facilitate incorporating Spring as Corporate Standard in the organization.

One thought on “Spring – Multiple transaction manager in an application

  1. I believe that tx:annotation-driven is to be defined only once.
    It’s transaction-manager attribute is used to give the default value to be used for cases, where @Transactional does not specify the Transaction Manager explicitly. Therefore specifying that twice is pointless.

Leave a Reply

Your email address will not be published. Required fields are marked *