I'm trying to currently get a two node cluster and a client work only in a failover setup. I'm using jboss-3.2.1.
my jboss.xml file has entries such as:
<clustered>true</clustered> <cluster-config> <partition-name>TestEJBPartition</partition-name>
<home-load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailable</home-load-balance-policy>
<bean-load-balance-policy>org.jboss.ha.framework.interfaces.FirstAvailable</bean-load-balance-policy> </cluster-config>
And, my client code has jndi.properties that look like:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming java.naming.provider.url=172.23.254.12:20100,172.23.254.11:20100
(20100 is the HA-JNDI port for these two machines).
The behaviour that I'd like is for the client to use just the first host (172.23.254.12) until it fails, and then failover to host 2 (172.23.254.11). However, no matter what I try, the client seems to round-robin the calls. I've read through the purchased clustering docs, and I'm failing to see something simple here.
The clustering DOES appear to work flawlessly, as I have stateful, stateless, and entity beans all in this partition, which work. My problem is that I want fail-over really, not clustering per se.
Any pointers?
Thanks, Russ Chan
-- -- Russell Chan, Navaho Networks Inc. 416 542 1590 x108
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user