implementing swing client to ejb server failover and load balancing

T

Timasmith

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:eek:rg.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top