Hi Ashish, On Fri, Jul 31, 2009 at 08:39, Ashish<paliwalash...@gmail.com> wrote: > Have implemented EhCache based LatestPresenceCache. Yet to test it.
Great! :-) > Did some refactoring, added a Base Cache class etc. Not yet committed :-( > > Have few queries > 1. EhCache 1.6.1 (latest release) is not part of Central Maven repo's. > So question is, Can I use it? If not what's the way forward > > 2. Config file - What's the best place to put config file and use it > in code at runtime. Please put it into src/main/config and put this directory on the classpath when starting the server. You should then be able to do: CacheManager.createCache("config/ehcache.xml"); > > Essentially, the cache configuration is in the file, and I need to > refer to the file > while creating the cache. So how do I do it? > > Need code something like CacheManager.createCache("config/ehcache.xml"); > > Any pointers? HTH, Bernd