• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jgroups configuration in JBoss

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Prasanna, thanks for posting the solution
reply
    Bookmark Topic Watch Topic
  • New Topic