I think you can't configure HA-JNDI to direct all lookups to a single node. I'm not familiar with 3.2.7 but in later code, HA-JNDI uses the smart proxy with a round-robin policy to service HA-JNDI lookups. Perhaps I'm misinterpreting something but that's my understanding of the current implementation.
Thanks for the reply
So can I say that JBoss clustering only support LB plus failover but not single failover. If I need some failover deployment like EJB HA-JNDI failover(exclude LB), I have to leverage some Hardward solution (Router IP Forward/NAT), we can not archieve that feature within JBoss. Am I right?
JBoss does come with other load-balance policies, like first available: http://docs.jboss.com/jbossas/javadoc/4.0.2/org/jboss/ha/framework/interfaces/FirstAvailable.html.
There's also http://docs.jboss.com/jbossas/javadoc/4.0.2/org/jboss/ha/framework/interfaces/FirstAvailableIdenticalAllProxies.html.
I know these are links to the 4.0.2 javadocs, but the link to the 3.2.7 javadocs aren't working. These load-balance policies may be available in 3.2.7.
This policy randomly selects the first target, so if that's not the behavior you want, you can extend this policy and customize the first target selection.