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
Post a Comment