java - Spring self injection for Transactions -


in spring can't call @transactional method same instance, because of aop-proxy thing. nice idea make self injection , call method self proxy instance? see drawbacks?

it totally ok. there jira ticket supporting feature using @autowired annotations. it's fixed in spring 4.3+ versions. xml-based configuration or using @resource annotation it's working in earlier versions.

you can see discussion bellow ticket. @transactional one of use case this:

particularly interested in @async , @transactional use cases.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -