2 Replies Latest reply on Nov 24, 2010 3:14 AM by nivek1984

    How to connect client to the cluster?

    nivek1984

      Hi all,

       

      Basically I have managed to cluster 2 nodes with:

       

      Node 1: run.bat -c all -g DefaultPartition –u 230.0.0.4 -b 10.67.51.28  -Djboss.messaging.ServerPeerID=1

      Node 2: run.bat -c all -g DefaultPartition –u 230.0.0.4 -b 10.67.50.21  -Djboss.messaging.ServerPeerID=2

       

      I know that if i cofigure a Apache load balancing(Mod_JK) to sit infront of  the cluster, the client simply just punch in the IP of the load balancer, and it will redirect the traffic to the nodes within the cluster.

       

      But I do not want to have a load balancer infront of the cluster. So how do my  client access the cluster?? Do i need to configure something in JBoss, or isit a  MUST to have a load balancer for the client to access the cluster??

       

      MANY thanks in advance....

       

      Kevin

        • 1. Re: How to connect client to the cluster?
          wdfink

          Hi Kevin,

          what do you mean by 'access the cluster'?

           

          If you use HTTP you're right, Apache do the work, there is no mechanism from JBoss side for this.

          Different is the RMI requests of EJB.

          Here the Remote interfaces are only proxies, the logic inside will manage the cluster.

          The proxy is provided by JBoss if you use JNDI (port 1099) or HA-JNDI (port 1100), but for sure you should use HA-JNDI in case of having a cluster configuration.

          This proxy will be updated automatically with the actual cluster-view.

           

          Was this you question?

          • 2. Re: How to connect client to the cluster?
            nivek1984

            THANKS!!! Now i finally understand... Yup that was precisely what i need to know.