5 Replies Latest reply on Sep 27, 2007 8:29 PM by khkachn

    Adding TreeCache to JBoss default server

    khkachn

      Hi,

      I am sure this is documented somewhere, but I am bad at the searches and could not find it (sorry).

      What do I have to do to add TreeCache to the default JBoss server?

      Thanks,

      Ken

        • 1. Re: Adding TreeCache to JBoss default server
          khkachn

          Forgot to mention we are using Jboss 4.0.5ga with EJB3.0

          Thanks,

          Ken

          • 2. Re: Adding TreeCache to JBoss default server
            brucespringfield

            Add a deployment descriptor for the TreeCache to the deploy directory of your server.

            You can also include the cache jar files in applications you deploy to the server.

            • 3. Re: Adding TreeCache to JBoss default server
              khkachn

              That works for 'all', but what do I need to do to get it to work in 'default' (jboss/server/default)?

              I put tree-cache.jar and jgroups.jar in default/lib and my cache-server.xml in default/deploy, but there must be more to it then that because I get errors (sorry, I don't have them here to post).

              Ken

              • 4. Re: Adding TreeCache to JBoss default server
                brucespringfield

                 

                "khkachn" wrote:
                That works for 'all', but what do I need to do to get it to work in 'default' (jboss/server/default)?


                should not be so different, as long as you are not attempting to cluster from default

                "khkachn" wrote:

                I put tree-cache.jar and jgroups.jar in default/lib and my cache-server.xml in default/deploy, but there must be more to it then that because I get errors (sorry, I don't have them here to post).


                I don't think you need jgroups.jar for the default. jgroups.jar, as I know it, is for clustering. You should post the errors. You might also post your config, cache-server.xml

                • 5. Re: Adding TreeCache to JBoss default server
                  khkachn

                  When I when back to get the error I realized it was caused by a problem in my cache-service.xml file. When I fixed that it works.

                  So, all you need to do is copy jboss-cache.jar and jgroups.jar from all/lib to default/lib and put your cache mbean xml in deploy (I just copied and moded the one in all/deploy for the Ejb cache) and it works.

                  Sorry for the confusion and thanks for the responses.

                  Ken