users@glassfish.java.net

Re: Accessing GlassFish Beans

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Mar 2007 09:36:21 PST

Hi Daniel,
You can use RMI-IIOP Failover and LoadBalancing feature for doing this. All you need to do is set the following property in your application code that is trying to access the ejb:

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

This is ensure that your application will talk to the host:port values in roundrobin fashion when you perform lookups.
Please refer to:

http://docs.sun.com/source/819-0595/dccorba.html


Sheetal
[Message sent by forum member 'sheetalv' (sheetalv)]

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