3 Replies Latest reply on Feb 14, 2007 12:37 PM by genman

    Where should I initialize/shutdown TreeCache?

    ottuzzi

      Hi there,

      I'm using Treecache in a webApp and I would like to know where is the best place to initialize cache (at webApp startup) and shutdown it at webApp stop (stop/redeploy).

      I placed initialization in a ServletContextListener.contextInitialized() and Treecache shutdown in ServletContextListener.contextDestroyed(): what do you think about this choice?

      Can you see a better place to do these operations?

      Thanks
      Bye
      Piero