5 Replies Latest reply on Jun 9, 2010 12:43 AM by dembuongactro

    How to setup HornetQ cluster on JBoss 5!

    dembuongactro

      Hi,

       

      I want to sertup HornetQ cluster on JBoss 5.0 on 2 machine physical

      - hornetq1 on machine 1

      - hornetq2 on machine 2

      ==> they are cluster together.

       

      Now, i only download JBoss, Java 6, HornetQ 2.0.0.GA and setup them.

      I am intergrated HornetQ into JBoss 5.0 with profiles all-with-hornetq.

      After, i copy the all-with-hornetq to hornetq1 and hornetq2

       

      Both hornetq1, hornetq2 I edit file server/hornetq1/deploy/hornetq.sar/hornetq-configuration.xml

       

      <clustered>true</clustered>
        
         <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>

       

         <bindings-directory>${jboss.server.data.dir}/hornetq/bindings</bindings-directory>

       

         <journal-directory>${jboss.server.data.dir}/hornetq/journal</journal-directory>

       

         <large-messages-directory>${jboss.server.data.dir}/hornetq/largemessages</large-messages-directory>

       

         <paging-directory>${jboss.server.data.dir}/hornetq/paging</paging-directory>

       

         <connectors>
            <connector name="netty">
               <factory-class>org.hornetq.integration.transports.netty.NettyConnectorFactory</factory-class>
               <param key="host"  value="${hornetq.remoting.netty.host:128.235.107.69}"/>
               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
            </connector>

       

            <connector name="in-vm">
               <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
            </connector>

       

         </connectors>

       

         <acceptors>
            <acceptor name="netty">
               <factory-class>org.hornetq.integration.transports.netty.NettyAcceptorFactory</factory-class>
               <param key="host"  value="${hornetq.remoting.netty.host:128.235.107.69}"/>
               <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
            </acceptor>

       

            <acceptor name="in-vm">
              <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
              <param key="server-id" value="0"/>
            </acceptor>

       

       

       

      So, what should i do to continue?

      Please help me.

       

      Thanks so much.

       

      Tien