users@glassfish.java.net

Re: Accessing GlassFish Beans

From: Daniel Cavalcanti <dhcavalcanti_at_gmail.com>
Date: Thu, 15 Mar 2007 14:27:38 -0400

Excellent. Thanks.
Question: If one of the hosts is down, will the failover happen
automatically under the covers or will I get an exception (at my app code
level) and have to try again myself so that the request goest to the next
host?

Daniel.

On 3/15/07, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org> wrote:
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>