Add the following jvm-options under java-config element for enabling RMI/IIOP failover feature:
<jvm-config java-home=path...server-classpath=path> <jvm-option> Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sun.appserv.ee.iiop.EEORBInitializer </jvm-option> <jvm-option> Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sun.appserv.ee.iiop.EEIORInterceptorInitializer </jvm-option> <jvm-option> Dcom.sun.CORBA.connection.ORBSocketFactoryClass=com.sun.appserv.enterprise.iiop.EEIIOPSocketFactory </jvm-option> </jvm-config>
Add the following entry in server.xml to setup the iiop-cluster.
<iiop-cluster> <iiop-server-instance name=<server-name>> <iiop-endpoint id=orb-listener-id, host=hostname, port=orb-listener-port/> </iiop-server-instance> </iiop-cluster> |
Update sun-acc.xml with the following new entries:
<property-name=¨com.sun.appserv.iiop.loadbalancingpolicy" value="ic-based" /> <property name="com.sun.appserv.iiop.endpoints" value="hostname:port" />
The host and port is that of ORB-lister-1 ”s which is defined under iiop-listener element in server.xml.