1 Reply Latest reply on Nov 29, 2010 3:09 AM by Claus Ibsen

    failover loadBalancer not working for cxfbc endpoints

    jeevan kumar Newbie

      Hi,

       

      I am trying to use failover loadBalancer to post a soap message to different cxfbc endpoints . But when the first endpoint fails,it is throwing "ConnectException" and stops trying next endpoint. I am using apache-servicemix-4.3.0-fuse-00-00 version of servicemix.

      Here is the loadbalancer:

       

       

                <to uri="jbi:endpoint:http://someuri/MyService1/MyEndpoint1?operation=notify"/>

                <to uri="jbi:endpoint:http://someuri/MyService2/MyEndpoint2?operation=notify""/>

                <to uri="jbi:endpoint:http://someuri/MyService3/MyEndpoint3?operation=notify""/>

      (HttpClient.java:231)

              at sun.net.www.http.HttpClient.New(HttpClient.java:304)

              at sun.net.www.http.HttpClient.New(HttpClient.java:321)

              at

      sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)

              at

      sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)

              at

      sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)

              at

      sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857)

              at

      org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1771)

              at

      org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1739)

              at

      org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42)

              at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)

              at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)

              at com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)

              at