2 Replies Latest reply on Jul 24, 2012 4:51 AM by rhusar

    Simple clusstering example

    miragpl

      Hi everyone,

       

      I would like to setup a simple cluster environment which would behave like that:

       

      * all communication goes to single node

      * when the node fails it would go automatically to other working node (but always all the communication goes to the single node)

       

      I cannot find example for such case. All examples contained some kind of load-balancing (sending request to random nodes). I would appreciate if someone could point me a place where I can see how to configure the cluster to meet my needs.

       

      I'm using jboss 6.1.

       

      Thanks in advance!

        • 1. Re: Simple clusstering example
          wdfink

          What you are using EJB2 or EJB3?

           

          In EJB2 you might implement your own LB policy, see conf/standardjboss.xml.

          For EJB3 I'm not sure, but it works similar and you should have a look into the deploy/ejb3-interceptors-aop.xml, I suppose implement something like the 'InvokeRemoteInterceptor' or 'ClusterChooserInterceptor'

          • 2. Re: Simple clusstering example
            rhusar

            +1

             

            And I would highly recommend switching to latest and greatest AS 7...