annotation-driven and aspectj-autoproxy proxy-target-class conflict

345 views
Skip to first unread message

Nick Spacek

unread,
Dec 6, 2012, 9:20:52 AM12/6/12
to ehcache-sprin...@googlegroups.com
Hi folks,

I'm wondering if there is a known issue or just an intended sharing of properties when trying to use both <aop:aspectj-autoproxy /> and <ehcache:annotation-driven />?

I have the autoproxy set to proxy-target-class="false" and the ehcache set to proxy-target-class="true", but setting the value on ehcache is causing problems with AOP on classes that are not annotated with @Cacheable. Is it possible to have these properties set this way?

Eric Dalquist

unread,
Dec 6, 2012, 11:10:54 AM12/6/12
to ehcache-sprin...@googlegroups.com
It wouldn't surprise me if aspectj and the ehcache annotation support don't play nice together. When we wrote this library back in the Spring 2.5 days the aop integration support was more limited and required two separate impls, one for proxy/cglib and one for aspectj. We only did the proxy/cglib implementation.

-Eric
Reply all
Reply to author
Forward
0 new messages