In our web application we have many contextes. In one of them tx:annotation-driven
is enabled. As result I have possibility to use @Transactional
annotation around the project, except beans created and scanned (@Controller, and related @Service, @Component, etc..) in spring-servlet.xml
(for one servlet's app context as was disscussed in Difference between applicationContext.xml and spring-servlet.xml in Spring Framework).
My goals is to additionally enable this feature for beans related to spring-servlet.xml
. I can try to do this with adding tx:annotation-driven
, but based on this topic spring multiple transaction manager issue such configuration considered not valid.
Could someone suggest in which way I can enable @Transactional
for beans from spring-servlet.xml