users@glassfish.java.net

Re: IIOP load-balancing not happening in cluster

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Nov 2007 21:23:51 PST

In a client like this that is not running inside the GlassFish app client container, there are subtle but important differences in how you specify the IIOP endpoint (the ORB host and port values) that influence whether the client-side ORB that communicates with the server ORBs uses load-balancing or not.

Setting org.omg.CORBA.ORBInitialHost and ORBInitialPort [b]bypasses[/b] the client-side ORB logic that deals with load-balancing and failover.

Instead, specify

com.sun.appserv.iiop.endpoints=host1:port1,host2:port2

as a system property (not as a setting in a Properties object passed to the initialContext method).

That will enable the client-side ORB to use the load balancing among the available servers.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=243994