JGroups 2.8.x and GossipRouter

The Jgroups manual describes the procedure for using application level multicast at http://www.jgroups.org/manual/html/user-advanced.html

However, after banging my head against it for a couple of days, I still could not get the nodes to detect the gossipRouter. After inspecting it with wireshark, I realized that the nodes were not even sending the ping message to the gossipRouter which implied an error in the stack set up for the system.Following the exact stack as mentioned in the manual does not work due to updated syntax in the newer versions.This is the new syntax to get the simple set up working with gossipRouter.

 <TCPGOSSIP
timeout=”3000″ 

initial_hosts=”192.168.1.5[12001]”

num_initial_members=”3″ 

reconnect_interval=”5000″ />

The gossipRouter should be started at the initial_host IP address listening at the port in the [ xxxxx ]

Eclipse Ganymede and Ubuntu 9.10

Ever since I set up my other laptop with ubuntu 9.10, things have been kinda weird with it. My initial work was to get started with some testing work on JGroups and so I set up eclipse and got started on the project. To my surprise, eclipse was behaving really weird on ubuntu 9.10. Basically, it would no detect mouse clicks!!!

It was hard to imagine a problem wit mouse clicks. Sometimes it would work, sometimes it would  just select the button and sometimes not even that. I got used to using the tab key to select the buttons. Then I started to sought out the problem for once. So this is the solution.

 

1. Create a start script for eclipse. Call it startEclipse.sh. The contents of the script should be

#!/bin/sh

export GDK_NATIVE_WINDOWS=1

<path to your eclipse directory>/eclipse

 

2. Give the script execute permissions

chmod 777 startEclipse.sh

 

3. Starting eclipse using this script resolves the issues with the UI.