1 Reply Latest reply on Jun 3, 2005 2:14 AM by ben.wang

    TreeCache + Hibernate + Spring + Tomcat

    newreaders

      Hi

      I would like to use TreeCache as a second level cache for Hibernate. I have configured TreeCache and successfully started it up with my app (in clustered) without any errors. How can I test and confirm that the cache is working in my app?

      I didn't specify the transaction manager in treecache.xml configuration file as I am using it with Hibernate in Tomcat. Do I need to set the transaction manager in order to use transaction caching in Hibernate?

      Could anyone who has any experience in using TreeCache in the environment such as mine give me some advice on what I should do?

      Thank you,
      Ben

        • 1. Re: TreeCache + Hibernate + Spring + Tomcat

          You don't need to specify the transaction manager if running under Hibernate. Hibernate will set it for you.

          Well, if you run JBossCache under Tomcat as a MBean, then you can print out the cache contents for example. But in this case, it is not the case. So the best bet is monitor the cache log output.

          -Ben