Using both RolesAllowed and Transactional in beans
Posted
by Laran Evans
on Stack Overflow
See other posts from Stack Overflow
or by Laran Evans
Published on 2010-06-11T22:53:24Z
Indexed on
2010/06/11
23:03 UTC
Read the original article
Hit count: 233
I have some beans which contain methods which are annotated with both @RolesAllowed and @Transactional. I have one Spring config file which utilizes a BeanNameAutoProxyCreator for Security related beans and another Spring config file which utilizes a BeanNameAutoProxyCreator for Transactional related beans.
The problem is that some beans contain both security as well as transactional-related beans. So Spring creates proxies for one set of beans. It then tries to create proxies for the other set of beans. When it does, it tries to create proxies of the proxies and bombs out.
Has anyone tried to configure both security and transactionality in the same beans via Spring? What's the trick?
Thanks.
© Stack Overflow or respective owner