aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jgroups configuration in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jgroups configuration in JBoss" Watch "Jgroups configuration in JBoss" New topic
Author

Jgroups configuration in JBoss

Prasanna Kannan
Greenhorn

Joined: Mar 07, 2005
Posts: 21
Hi,

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.

Thanks,
Prasanna
Prasanna Kannan
Greenhorn

Joined: Mar 07, 2005
Posts: 21
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.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10052
    
163

Prasanna, thanks for posting the solution


[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jgroups configuration in JBoss