This content has been marked as final.
Show 2 replies
-
1. Re: Clustered servers on same machine not load-balancing
anguyen Aug 31, 2005 4:19 PM (in response to jason1)It looks like you're using the non-clustered naming context to lookup your EJB. Try this:
... Properties props = new Properties(); props.setProperty(javax.naming.Context.PROVIDER_URL, "jnp://localhost:1100"); InitialContext ic = new InitialContext(props); ...
-
2. Re: Clustered servers on same machine not load-balancing
jason1 Aug 31, 2005 4:28 PM (in response to jason1)Here is my jndi.properties on the client-side. Should auto-discover the servers... Am I missing something in these settings?
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
jnp.discoveryGroup=230.0.0.4
jnp.discoveryPort=1102