aspose file tools*
The moose likes JBoss/WildFly and the fly likes Clustering issue with HA-JNDI with JBOSS 5 EAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Clustering issue with HA-JNDI with JBOSS 5 EAP" Watch "Clustering issue with HA-JNDI with JBOSS 5 EAP" New topic
Author

Clustering issue with HA-JNDI with JBOSS 5 EAP

Rushabh Vashi
Greenhorn

Joined: Apr 27, 2011
Posts: 20
Hi All,

I am using JBOSS 5 EAP application server for our product.
We have created two separate nodes for testing node1 and node2.

I have done following for enabling clustering,
-> Gave partition name in startup file
-> Gave same multicast address.

My node1 is running on 1699 (JNDI) and 1700 (HA-JNDI)
and node2 is running on 1799 (JNDI) and 1800 (HA-JNDI)

I want to achieve below scenario,

If node1 gets fail, all request coming to 1700 port should be diverted in cluster's node2 (means 1800 port) and vice versa for node2.

I can achieve this using giving two jndi properties list in lookup code,
i.e
"p.put(Context.PROVIDER_URL, "192.168.6.102:1700,192.168.6.102:1800");"

Is this the proper way?

I want to give only "192.168.6.102:1700" and if node1 is disabled, then request should be forwarded to node2, as both nodes were in same cluster.

Please help me.

Thanks,
Rushabh
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Clustering issue with HA-JNDI with JBOSS 5 EAP