1 Reply Latest reply on Mar 1, 2009 1:58 AM by Ron Sigal

    Sending to another host after connection was lost

    Daniel Travin Newbie


      what is the best way to switch all invocations to another server after a client was notified about lost connection?

      Lets say if I have a server clustered into two nodes, and my remoting client uses first node as as server, how to switch to the backup server in case of an error ?


        • 1. Re: Sending to another host after connection was lost
          Ron Sigal Master

          Well, that's a big question. Remoting has various services, such as connection monitoring and server discovery, that could be used to support failover. I'm going to suggest that you take a look at the clustered Transporter sample, which uses an org.jboss.remoting.detection.multicast.MulticastDetector to find alternative servers. There is a discussion in Section 12.9.5. "Transporter sample - clustered" of the Remoting Guide (http://www.jboss.org/jbossremoting/docs/guide/2.5/html/index.html). The sample code may be found in examples/org/jboss/remoting/samples/transporter/clustered in the distribution. Look at org.jboss.remoting.samples.transporter.clustered.client.Client.java in particular.