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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -