10 Replies Latest reply on Dec 16, 2003 8:47 PM by gjacobi

    Cache in JBoss 3.0.x ?

    Lecan Newbie

       

      "lyc1" wrote:
      "lyc1" wrote:
      Hello

      I read a lot on jboss cache in this forum, but I don't think it can be used for jboss 3.0.x

      How could i implement a distributed cache through jboss cluster (I though about JMS, but ...) ?

      Thanks


      Damien


        • 1. Re: Cache in JBoss 3.0.x ?
          Bela Ban Master

           

          "bela" wrote:
          "bela" wrote:
          It *could* be back-ported from JB4. However, the new PersistenceManager code will work only in JB4.
          Bela


          • 2. Re: Cache in JBoss 3.0.x ?
            Lecan Newbie

             

            "lyc1" wrote:
            "lyc1" wrote:
            Ok, i'm trying to implement on my own a distributed cache.

            All of my JBoss instance are in cluster (through a cluster-service) and I would like to access to this javagroups "channel" instanciated into JBoss.

            Where could I find API description for this ? (not javagroups API, but JBoss use of javagroups API)

            Thanks

            Damien


            • 3. Re: Cache in JBoss 3.0.x ?
              Bela Ban Master

               

              "bela" wrote:
              "bela" wrote:
              Look at org.jboss.ha.framework.server.{ClusterPartition,HAPartitionImpl} plus the clustering docs.

              Better ask this question in the clustering forum.
              Bela


              • 4. Re: Cache in JBoss 3.0.x ?
                DRAI William Newbie

                 

                "wdrai" wrote:
                "wdrai" wrote:
                Is it possible to use the new jboss treeCache with hibernate in a jboss 3.2.1 cluster ?
                I don't need JbossDO or CMP Entities, only Hibernate.



                • 5. Re: Cache in JBoss 3.0.x ?
                  Ben Wang Master

                   

                  "bwang00" wrote:
                  "bwang00" wrote:
                  Hi,

                  Hibernate will soon have a version that can use TreeCache. Watch out for the announcement on Hibernate.

                  Regards,

                  -Ben Wang


                  • 6. Re:
                    Bela Ban Master

                     

                    "bela" wrote:
                    "bela" wrote:
                    The JBossCache has been backported to JBoss 3.2.3 (CVS Branch JBoss_3_2) by Ben Wang.
                    Bela


                    • 7. Re: Cache in JBoss 3.0.x ?
                      gjacobi Newbie

                       

                      "gjacobi" wrote:
                      "gjacobi" wrote:
                      I am also interested in running JBossCache in Jboss 3.2.3 but I have not had any success. Where can I find info on how to deploy it appropriatly?

                      Thanks.


                      • 8. Re: Cache in JBoss 3.0.x ?
                        gjacobi Newbie

                         

                        "gjacobi" wrote:
                        "gjacobi" wrote:
                        I did a little more research on why I cannot deploy the TreeCache mBean in jboss3.2.3.

                        This is what I did:

                        I took the as-is replSync-service.xml file, wrapped it in a .sar file and I placed it in the 'all' container.
                        I started jboss (version=3.2.3).
                        I got the following error:

                        status: Deployment FAILED reason: create operation failed for package file:/C:/jboss/server/webster/deploy/CacheService.sar; - Nested throwable: (org.jboss.deployment.DeploymentException: overloaded type for attribute set: CacheMode; - nested throwable: (javax.management.NotCompliantMBeanException: overloaded type for attribute set: CacheMode))

                        After some review, it appears that there is a problem with the TreeCache MBean in the fact that it has multiple TreeCache.setCacheMode methods (one takes an int and one takes a string). The object StandardMetaData looks like it is inspecting the TreeCache class and it does not like multiple 'set' methods for the same paramater.

                        So, my guess is that the problem is one of four things (I am hoping you can help me close in on which one it is).

                        1) I deployed it wrong.
                        2) TreeCache has a bug and one of the setter methods for setCacheMode should be removed or changed.
                        3) StandardMetaData has a bug, it should allow the overloaded setter methods.
                        4) Something else is wrong within jboss (catch all reason to make it sound like I covered all the bases :)

                        Any ideas?


                        Thanks,
                        Greg


                        • 9. Re: Cache in JBoss 3.0.x ?
                          Bela Ban Master

                           

                          "bela" wrote:
                          "bela" wrote:
                          Yes, you are correct - we have an overloaded setCacheMode() setter. We allow this when we run outside the container (we have our own XMLConfigurator), but inside the container, the deployer bean fails.

                          What to do ? I can create a separate setCacheModeStr() method, so we avoid overloading.

                          Please create a bug report on SourceForge, and I'll fix this.
                          Bela


                          • 10. Re: Cache in JBoss 3.0.x ?
                            gjacobi Newbie

                             

                            "gjacobi" wrote:
                            "gjacobi" wrote:
                            I created the bug (861428). Let me know how it turns out.

                            Thanks a bunch.

                            Greg