6 Replies Latest reply on Jul 27, 2009 8:46 AM by sjunejo

    Making Cluster jBoss Messaging Scalable

    sjunejo

      Hi,

      I have just implemented jBoss messaging in a cluster bearing High availability in mind and its working. I am using MySQL as my shared database. Now I want to scale my setup say If my browser put any message to my Queue (Clustered Queue) it should be get processed by both of my app servers running on different machines and when they get response back they put message back to response queue and my browser knows where to look for response message.... I have an idea about HAJNDI but i am not if this is the correct approach.

      I am using Apache as my Web Server load balancing. What is a method from which I can load balance my JMS.

      I was searching and found out about Clustered Post Office. Does this has anything to do with scalability.

      Can anyone please guide to proper setup or example to implement it???

      Thanks

        • 1. Re: Making Cluster jBoss Messaging Scalable
          ataylor

           

          I have just implemented jBoss messaging in a cluster bearing High availability in mind and its working. I am using MySQL as my shared database. Now I want to scale my setup say If my browser put any message to my Queue (Clustered Queue) it should be get processed by both of my app servers running on different machines and when they get response back they put message back to response queue and my browser knows where to look for response message.... I have an idea about HAJNDI but i am not if this is the correct approach.


          I'm not 100% sure I understand what you are trying to do here. It sounds like you are saying that you want a single message to be delivered to both servers? Could you describe in more detail what you are trying to achieve?

          • 2. Re: Making Cluster jBoss Messaging Scalable
            sjunejo

            I am sorry I made a mistake in writting. I mean messages should get processed by both app server.

            When my browser put message onto queue jBoss should distribute that message according to load on each server or even round robin fashion or any recomneded policy. In short load balanacing on messaging level (JMS level).

            Is it possible????

            • 3. Re: Making Cluster jBoss Messaging Scalable
              ataylor

              JBM 1.4 will only distribute a message to another node in the cluster if it has no consumers. Messages will always be consumed locally if a consumer exists as this is quicker and makes sense.

              • 4. Re: Making Cluster jBoss Messaging Scalable
                sjunejo

                Thanks very much.

                So it means the jBoss messaging is by-default scalable???

                We don't need to apply different settings to reroute messages to other nodes if local queue is not present and jboss messaging will do it auto matically for us.

                I have two servers in a cluster both have their own distributed queues. Let say If I delete my request and response queue from one of the node message will be redirected automatically to other node?... I dont have to set any clustered PostOffice or anything???

                By the way how to delete a queue once deployed??....Lately I was jut playing around and try to change the 'Clustered' attribute of a deployed and started queue to true and it gives me exception that (something like that)

                'Queue property Cluster = true can not be applied as the same queue has already been deployed as Cluster = false. Delete the queue first and then create again.'

                • 5. Re: Making Cluster jBoss Messaging Scalable
                  ataylor

                   

                  So it means the jBoss messaging is by-default scalable???


                  yes

                  We don't need to apply different settings to reroute messages to other nodes if local queue is not present and jboss messaging will do it auto matically for us.


                  messages will be re routed if no local *consumers* not queues. a clustered queue should exist on each node.

                  I have two servers in a cluster both have their own distributed queues. Let say If I delete my request and response queue from one of the node message will be redirected automatically to other node?


                  Like i said before, a clustered queue should exist on each node, I'm not sure why you would want to delete them.

                  I dont have to set any clustered PostOffice or anything???


                  Yes the post office needs to be cluetered as do the queues.



                  • 6. Re: Making Cluster jBoss Messaging Scalable
                    sjunejo

                    hmmm....thats make some sense......could you plz refer some good example for 'Clustered POST Office' implementation as I have already tried one but :-(....

                    Anyway...Thanks again for the clarification....cheers :-)