4 Replies Latest reply on Feb 2, 2005 8:12 PM by ben.wang

    JBoss Cache in Tomcat.

    craigmain

      Hi,

      I am trying to run JBoss Cache as an MBean in tomcat 4.1.31.
      I cannot seem to get the configuration correct.

      The configuration of mbeans in tomcat is very different to the configuration in say replSync-eviction-service.xml (or am I wrong).
      How do I get Tomcat to load and use the cache as an mbean (potentially without JBoss). Tomcat 4.1.31 supports MBeans.

      Any assistance in getting this configuration correct would be greatly appreciated.

      Regards
      Craig

        • 1. Re: JBoss Cache in Tomcat.
          craigmain

          Does nobody know how to do this?
          I really thought it was such a simple question.

          Regards
          Craig

          • 2. Re: JBoss Cache in Tomcat.

            The treecache xml configuration is used for JBoss MBean service deployment not just a regular JMX MBean.

            In order to deploy it as a regulat MBean, you will need a wrapper to do that. I don't know the exact details under Tomcat. But I imagine it will be like obtaining the MBean server and then do a register.

            Anyone knows how Tomcat works with the MBean?

            -Ben

            • 3. Re: JBoss Cache in Tomcat.
              craigmain

              Hi Guys,

              I appreciate the response,
              Surely this must be a big No.1 use of JBossCache?
              Did you not think there would be demand for this?

              • 4. Re: JBoss Cache in Tomcat.

                If you want to contribute the wrapper code to deploy JBossCache under Tomcat as a regular MBean, you can put it in our JBossWiki site. And I will include it in our faq.

                Thanks,

                -Ben