2 Replies Latest reply on Mar 23, 2007 9:21 AM by Piero Ottuzzi

    Starting a cache instance at application startup

    Fabien Coppens Newbie

      can you give me advice on the good way(s) to start a cache instance when on application startup (in my case on Weblogic) ?
      My idea is this :
      a CacheManager singleton is instanciated by the classloader (or by the Spring BeanFactory, whichever), the TreeCache instance -myCache- is an attribute of CacheManager, and an ApplicationListener calls the static start() method of my CacheManager which will instanciate myCache and call myCache.startService()
      Does this sound good to you, or is there a simpler or smarter way ?