Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > implementing sw...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1270 of 1372
Post > Topic >>

implementing swing client to ejb server failover and load balancing

by "Timasmith" <timasmith@[EMAIL PROTECTED] > Dec 1, 2006 at 09:54 PM

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
 




 1 Posts in Topic:
implementing swing client to ejb server failover and load balanc
"Timasmith" <  2006-12-01 21:54:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 22:48:13 CDT 2008.