my dog learned polymorphism*
The moose likes Spring and the fly likes issue with ehcache while configuring in spring context. Cache not getting configured in cacheManager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "issue with ehcache while configuring in spring context. Cache not getting configured in cacheManager" Watch "issue with ehcache while configuring in spring context. Cache not getting configured in cacheManager" New topic
Author

issue with ehcache while configuring in spring context. Cache not getting configured in cacheManager

xankumar Kumar
Greenhorn

Joined: Jan 11, 2013
Posts: 1
I am using Spring 3.0.6 in my project in which i am trying to configure the annotation based ehcache. Below are the beans i have defined for cacheManager and cache in my spring context. When i test this configuration i am not getting the cache under the cacheManger. The requirement is to provide the cache initializing parameters through a property file thats why i am not using external ehcache.xml for cache configuration. I am not sure if i am missing any particular configuration to make it working, as per the API it should add the cache to the cacheManager but while debugging i didn't find any cache in the cacheManager. Please suggest. Many thanks in advance!


maven dependecy inserted in pom
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Can you post the entire exception stack trace you are getting when you run your aplication?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
GeeCON Prague 2014
 
subject: issue with ehcache while configuring in spring context. Cache not getting configured in cacheManager