This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9947
    
161

Prasanna, thanks for posting the solution


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jgroups configuration in JBoss
 
Similar Threads
isCallerInRole() method
JBoss In Action - Covered JBoss Technologies
JBoss and JDK 1.4
Http Session Replication
JBoss for Linux