Hi All,
I am having an issue where I keep getting cache misses. I checked my cachestore and it looks like its never being populated with any users. I can't really see where the problem lies as I have followed the examples closely, the only thing that I have different is that I am using a custom AuthenticationProvider.
In my custom provider I have added a EhCacheBasedUserCache userCache object and added a getter and setter for it.
If anyone can provide some direction that would be great.
Thanks,
Abu
My application-Context is as follows:
My ehcache.xml is as follows:Code:<bean id="userCache" class="org.acegisecurity.providers.dao.cache.EhCacheBasedUserCache"> <property name="cache"> <ref local="userCacheBackend" /> </property> </bean> <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> <property name="configLocation"> <value>classpath:/ehcache.xml</value> </property> </bean> <bean id="userCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <property name="cacheManager"> <ref local="cacheManager" /> </property> <property name="cacheName"> <value>eisMiddleTierCache</value> </property> </bean> <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager"> <property name="providers"> <list> <ref bean="janusAuthenticationProvider" /> </list> </property> </bean> <bean id="janusAuthenticationProvider" class="com.jpmorgan.eis.security.manager.JanusAuthenticationManager"> <property name="userCache"> <ref bean="userCache" /> </property> </bean>
Code:<cache name="eisMiddleTierCache" maxElementsInMemory="5000" eternal="false" overflowToDisk="false" timeToIdleSeconds="3600" timeToLiveSeconds="1800" />


