Reputation: 1818
I migrate a Spring project from XML-based configuration to Java-based configuration.
What is the best way to migrate the following piece of configuration?
<aop:config expose-proxy="true" />
Hint: I use this setting to access the proxy in a bean so that a transactional method can be called from a method that is not transactional.
Hint: I have seen https://jira.spring.io/browse/SPR-8148 but I don't know whether the second of the recommended approaches is the right one.
Upvotes: 3
Views: 1966
Reputation: 52368
There is a JIRA issue created for this as an improvement. I would suggest voting for it to get more chances to be prioritized better.
Upvotes: 4