I have a replication functionality implemented in my project using the jgroups api which comes with JBoss. My application runs correctly with JBoss 3.2.7, but the replication is not working after I upgraded Jboss to 4.2.0GA.
After analysis, I found that the code which I call to get the replicator members work differently between these two versions of JBoss/JGroups.
The method View.getMembers() (JGroups API) returns the machine names like SERVER1, SERVER2, etc... in JBoss 3.2.7 where as the same API returns the IP addresses (like 192.168.10.101, 192.168.10.102, etc...) as the output of this method in Jboss 4.2.0GA.
Could anyone let me know if there a change in JGroups or will any configuration change help me fix this issue? Appreciate your time and help.
Joined: Mar 07, 2005
I have got a solution from JBoss Support, just in case if anyone else has this problem.
The class org.jgroups.stack.IpAddress has an attribute called resolve_dns. In 2.2.7, its value is true by default, but in 2.4.1.SP3, its value is false by default.
By specifying the system property (-Djgroups.resolve_dns=true), this issue is solved.