1 2 Previous Next 16 Replies Latest reply on Jan 18, 2013 11:37 AM by wdfink Go to original post
      • 15. Re: Does AS7 still support round robin load balancing?
        kwatsen

        This thread is almost a year old but still marked "Not Answered".

         

        I find myself in the same (I think) situation as the OP (Joseph) and wondering if/how he ever got it to work.

         

        I'm using 7.1.3 Final with standalone-full-ha.xml and have a SLSB (with the @Clustered annotation set) exposing a public method (with the RESTEasy @POST annotation set) that immediately executes an @Asynchronous method, which splits and distributes the work via multiple calls to yet another @Asynchronous method.  Everything works except that none of the @Asynchronous calls ever get sent to the other clustered JBoss server.  I've also tested using a 2-month-old 7.2 SNAPSHOT with the same effect.

         

        I've looked at documentation for both the EJB client API project as well as remote-naming project, but they seemed more geared to remote clients as opposed to the load-balancing happening within/between cluster members.  Perhaps the docs are still relevant, but I'm not sure...

         

        Any pointers would be greatly appreciated!

         

        UPDATE: I forgot to mention that AS7-3492 is for Stateful beans, but mine are Stateless.  Also, FWIW, I have an Infinispan cache working correctly across my cluster.  Lastly, I start my AS servers via the commands:

        • Node-1: ./jb1/bin/standalone.sh -Djboss.node.name=jb1 -Djboss.messaging.cluster.password=secret --server-config=standalone-full-ha.xml
        • Node-2: ./jb2/bin/standalone.sh -Djboss.node.name=jb2 -Djboss.messaging.cluster.password=secret --server-config=standalone-full-ha.xml -Djboss.socket.binding.port-offset=100

         

        I have not edited the standalone-full-ha.xml file otherwise...

        • 16. Re: Does AS7 still support round robin load balancing?
          wdfink

          Hi Kent,

           

          the remoting project will not support the cluster functions.

          There are some examples in my quickstarts, see the QS[1] for server-to-server EJB remote call and QS[2] for some standalone client examples.

           

           

          [1] https://github.com/wfink/jboss-as-quickstart/tree/ejb-multi-server/ejb-multi-server

          [2] https://github.com/wfink/jboss-as-quickstart/tree/ejb-clients/ejb-clients

          1 2 Previous Next