3 Replies Latest reply on Mar 10, 2004 2:36 AM by zubairq

    Clustered JMS

    zubairq

      Hello, I want to create a high performance system on JBoss which relies on JMS. Since JMS on JBoss doesn't have load balancing I tried to have my JMS Message Beans call a clustered stateless session bean, thus allowing Load Balancing of message beans. However, when I call the clustered stateless session bean from the message bean the call is always sent to an instance on the same container as the message bean which called it. How can I get the message bean to call a stateless session bean on another server?

        • 1. Re: Clustered JMS
          ivelin.ivanov

          Thank you for your reply. Next time I will make sure that I only post on the users forum. My apologies for that.

          I looked through the clustering documentation and it was not clear to me where I should specify a different RMI policy. Should I specify this is jboss.xml under the load balance policy for my stateless session bean?

          • 2. Re: Clustered JMS
            ivelin.ivanov

            You may want to experiment with different RMI load balancing policies. The default will use local invokation most of the time, which is better most of the time anyway. If your tasks are really heavy weight, you may want to try round robin.
            See the clustering book for instructions how to do that.

            Ivelin

            • 3. Re: Clustered JMS
              zubairq

              Thank you for your reply. Next time I will make sure that I only post on the users forum. My apologies for that.

              I looked through the clustering documentation and it was not clear to me where I should specify a different RMI policy. Should I specify this is jboss.xml under the load balance policy for my stateless session bean?