I am using Spring 3.0.6, EhCache core 1.7 and Tomcat 6.
I run JConsole and I can see the regions declared in ehcache.xml being created but when I run my code it always calls the method implementation rather than the cache.
Any ideas?
Nicholas Blair
unread,
Nov 7, 2012, 3:41:40 PM11/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcache-sprin...@googlegroups.com
Are the instances of whatever class implements "public SomeObject
getCachedMethod1()" spring managed beans?
If so, are
the collaborating classes that call your instance's getCachedMethod1
method receiving a reference to the annotated class via dependency
injection?
Claudio Santana
unread,
Nov 7, 2012, 4:15:31 PM11/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcache-sprin...@googlegroups.com
The class exposing public SomeObject getCachedMethod1() is a Spring managed bean through @Service("myService") and is being injected with @Autowired dependency injection annotation.
Claudio Santana
unread,
Nov 7, 2012, 4:34:27 PM11/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcache-sprin...@googlegroups.com
I set up a breakpoint right on EhCacheInterceptor#invoke but it never gets called. Is there anything to configure regarding cut-points I'm missing ?
Eric Dalquist
unread,
Nov 9, 2012, 12:31:15 PM11/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ehcache-sprin...@googlegroups.com
And how are the classes using it referencing it? Any client of a class annotated with @Cacheable must use the interface that defines the annotated method.