4 Replies Latest reply on Dec 31, 2014 11:48 AM by yawarabbas

    Modeshape (infinispan) in Replication with jgroups-tcp

    yawarabbas

      Hi,

       

      I am beginner to modeshape and trying to configure modeshape in replication mode, by using jgroups-tcp. As the persistance layer of modeshape is configured to use Infinispan.

      My purpose is to deploy an instance of application on MachineA (192.168.30.25) and another instance at MachineB (192.168.30.27), such that if application creates or changes a node in modeshape of machineA than it should be automatically replicated and appeared in instance of machineB.

       

      For this i used attached configuration files of DataRepository.json, infinispan configuration (i.e. configuration.xml) and transport (i.e. jgroups-tcp.xml). But on startup of application server following error appears:

      Error while deploying repository: Error while starting 'DataRepository' repository: org.infinispan.commons.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport

       

      An interesting thing is that if i use the loopback (127.0.0.1) or own IP in jgroups-tcp.xml than the server starts fine and modeshape started successfully. But if i provide the IP of machineB in machineA configuration and IP of machineA in machineB configuration (to make communication possible between both machines) than the said error occured.

       

      I need Help to replicate the persistance of one modeshape instance into some remote location. Please help by guiding in right direction.

      Much Thanks in advance.

       

      Regards,

        • 1. Re: Modeshape in Replication with jgroups-tcp
          hchiorean

          From your description this seems to be related to some JGroups/ISPN configuration peculiarities (possibly a bug - see this similar issue: [ISPN-2056] exception in stopping a component resulted in failing to stop cache manager - JBoss Issue Tracker)

          Please post/cross-post this question on the Infinispan forums. Also, it would help to have the full stack trace & DEBUG logging enabled for JGroups

          1 of 1 people found this helpful
          • 2. Re: Modeshape (infinispan) in Replication with jgroups-tcp
            yawarabbas

            Thanks Horia Chiorean,

             

            I moved the discussion in Infinispan forum. My purpose was to know any other way around to achieve the replication (if possible by modeshape). But it seems that only the infinispan manages this replication/clustering with jgroups-tcp.

             

            And i think i am missing something (probably any service etc) at remote machineB, to listen for jgroup-tcp requests from machineA. Plz correct me if i am wrong or any guideline to register/install that receiving end service/configuration. Thanks

            • 3. Re: Modeshape (infinispan) in Replication with jgroups-tcp
              hchiorean

              My purpose was to know any other way around to achieve the replication (if possible by modeshape). But it seems that only the infinispan manages this replication/clustering with jgroups-tcp.

              That is correct. ModeShape does not implement any clustering behavior by itself really. Instead, it relies on the configuration of Infinispan & JGroups.

              1 of 1 people found this helpful
              • 4. Re: Modeshape (infinispan) in Replication with jgroups-tcp
                yawarabbas

                Much Thanks for the cooperation.

                 

                Finally the issue found in my jgroups-tcp configuration. It is resolved when I entered the bind_addr of the same machine (where the application instance was hosted) in tcp configuration. And entered the comma separated list of all remote hosts in TCPPING initial_hosts as follows:

                 

                <TCPPING timeout="3000"

                            initial_hosts="192.168.30.25[7800],192.168.30.27[7800]"

                            port_range="5"

                            num_initial_members="2"

                            ergonomics="false" />