For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > December 2006 > implementing swing client to ejb server failover and load balancing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author implementing swing client to ejb server failover and load balancing
Timasmith

2006-12-02, 4:00 am

Hi,

So far my Swing app uses a system property at runtime to determine
which JBoss server to connect to.

-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
-Djava.naming.provider.url=appserver:1099

Ideally I would like to round robin to randomize which server to
connect to which each call to the server to both take advantage of
multiple servers and if one is down to failover to another.

The client code is:

Object ref = ctx.lookup("SomeBean/remote");

Can I set these system properties somewhere other than at the command
line?

tia

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com