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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -