I've been tryin to follow the springmodules cache example by piecing together the code samples, and I came up with this simple configuration:
So I thought it looked good but nothing gets cached, and I see this guy in the logs:Code:<beans> <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" /> <bean id="cachingListener" class="com.test.CacheListener" /> <bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade"> <property name="cacheManager" ref="cacheManager" /> </bean> <bean id="userFacadeCacheProxy" class="org.springmodules.cache.interceptor.proxy.CacheProxyFactoryBean"> <property name="cacheProviderFacade" ref="cacheProviderFacade" /> <property name="cachingModels"> <props> <prop key="get*">cacheName=methodCache</prop> </props> </property> <property name="cachingListeners"> <list> <ref bean="cachingListener" /> </list> </property> <property name="target" ref="userFacade" /> </bean> </beans>
But for the life of me I cant find that class anywhere and even google doesnt seem to know much about it. So my first question is, is that whats causing my cache to not work and if so, where can i find that jar?Code:java.lang.ClassNotFoundException: org.springmodules.cache.config.tangosol.CoherenceNamespaceHandler at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
Second question, I am using the expression get* for the cachingmodel just for simplicity. In actuality though, there are 2 get methods in the class I am testing:
getSomething()
getSomething(String argument)
I really dont want the second one to get cached though because the results will be too unique. Is there anyway I can specify to use the one without the String argument, without changing the method names?


