7 Replies Latest reply on Jun 1, 2014 11:41 PM by ravi.teja

    HQ Cluster with Jgroup and Jboss as 7

    ravi.teja

      Hi Justin ,

       

      Lets assume that we have 1 Jboss As server 7.1 and 2 HQ servers which are running in Amazon EC2.

       

      The HQ servers are running in cluster mode .

       

      Now i want to connect to the remote HQ servers which are running in cluster mode  from Jboss As server 7.1 .

        • 1. Re: HQ Cluster with Jgroup and Jboss as 7
          jbertram

          I'm confused about what you're asking about.  In your first comment you said, "Now, my question is How to configure the hornetq cluster details in the jboss server . Actually i want to configure with the Jgroup tcp protocal."  Then roughly 7 hours later it appears you found the proper TCP JGroups configuration to cluster your servers.  Is that correct?

           

          In the second comment you ask, "My question is how to connect  to these  2 HQ servers from Jboss with jgroups?"  Are you asking about how to connect to the HornetQ cluster from a remote client?  Please clarify?

          • 2. Re: HQ Cluster with Jgroup and Jboss as 7
            ravi.teja

            Hi Justin ,

             

            Thank you for your reply .

             

            Actually , I configured the HQ server in cluster mode and they are connected as core bridge also . But , How can i connect or configure to these clustered Hornetq from jboss server .

            • 3. Re: HQ Cluster with Jgroup and Jboss as 7
              jbertram

              Actually , I configured the HQ server in cluster mode and they are connected as core bridge also . But , How can i connect or configure to these clustered Hornetq from jboss server .

              Are you talking about a JBoss AS server separate from the one(s) hosting HornetQ.  Please clarify your use-case.

              • 4. Re: HQ Cluster with Jgroup and Jboss as 7
                ravi.teja

                Hi Justin ,

                 

                Lets assume that we have 1 Jboss As server 7.1 and 2 HQ servers which are running in Amazon EC2.

                 

                The HQ servers are running in cluster mode .

                 

                Now i want to connect to the remote HQ servers which are running in cluster mode  from Jboss As server 7.1 .

                • 5. Re: HQ Cluster with Jgroup and Jboss as 7
                  jbertram

                  Please clarify what kind of client you will be using and what the client will be doing.  Will you be using an MDB?  Will you be using a "core" client or a JMS client?  Will you be sending or consuming messages?

                   

                  Your use-case is still unclear.

                  • 6. Re: HQ Cluster with Jgroup and Jboss as 7
                    ravi.teja

                    Hi Justin ,

                    Please find the complete scenario below

                     

                    I have an ejb jar which containing the MDB for the queue named as exampleQueue and it is deployed in the JbossAsServer -7.1 .

                     

                    I have a simple JMS client , Which will push the messages to the exampleQueue . When i push a message to the exampleQueue , Any one hornetq server should listen and The MDB  will process to consume messages in exampleQueue which is delpoyed in JbossAsServer-7.1.

                     

                    Now , I stuck in configuring the JbossAsServer-7.1 to connect to the remote HQ servers which are running in cluster mode

                    • 7. Re: HQ Cluster with Jgroup and Jboss as 7
                      ravi.teja

                      Hi acxjbertr

                       

                      ,

                       

                      The below diagram shows my architecture

                       

                      Untitled Diagram.jpg

                      Where JBOSS EC2 instances are autoscale and non-clustered .The Hornetq Servers are also autoscale but in clustered mode.  We are using the jgroups tcp for HQ clustering .