4 Replies Latest reply on Jan 3, 2003 11:17 AM by Tim

    1 queue on 2 different servers

    Tim Newbie

      Hi,

      I've read countless messages about JMS not working on multiple servers. (Don't worry I'm not going to ask again!) I know you can't share one queue within a cluster.

      What I was wondering was if I had 2 queues with the same name on different nodes in my cluster would the JNDI lookup allow me to loadbalance between the the two queues?

      Tim.

        • 1. Re: 1 queue on 2 different servers
          Cosmotic Newbie

          It would indeed. This is working on JBoss 3.0.3 here...

          • 2. Re: 1 queue on 2 different servers
            Alwyn Schoeman Newbie

            Excuse me I am not a JNDI expert.

            Do JBoss do this because JNDI will return different references when the lookup is repeated. Or will the JNDI actually return multiple references?

            Do you use JNDI the same way whether using cluster or not?

            • 3. Re: 1 queue on 2 different servers
              VH Newbie

              Can you explain in detail how it actually works. I have a running app on one note, and the client( from seperate machine) can access the Queue through lookup, the initContext was initiated using url: host:1099
              Then I add another note with same JBoss config, hope to get load balance between two queues with the same name.
              I thought I need switch the url to host:1100 for initContext, but the client program got timeout exception in the first lookup for ConnectionFactory. both nodes running in "all" config.
              Also, I like to know can I archieve such kind load balance on single machine with multiple jboss instances? Multiple VMS can maximize the CPU usage.

              Thanks
              V.H.

              • 4. Re: 1 queue on 2 different servers
                Tim Newbie

                > Do JBoss do this because JNDI will return different
                > references when the lookup is repeated.

                I believe that it returns different references based on the load-balancing rule you have set. You'll have to check the docs about this the algorithm used.

                Tim.