next up previous contents
Next: Testing for Use over Up: Running a Demo Program Previous: Running a Demo Program

Testing for Normal Use

Run the Draw program:

 java Draw

A drawing window should appear. Start a second instance. Both instances should change their membership (shown in the title bar) to 2. When drawing the mouse in one window, the second instance should also be updated. As the default group transport uses IP multicast, make sure that - if you want start the 2 instances in different subnets - IP multicast is enabled. If this is not the case, the 2 instances won't 'find' each other and the sample won't work. See the documentation on gossip 3.8 to use a mechanism where instances query a server to find each other, and on the UDP protocol layer 7.2.14 to learn how to disable IP multicast and use point to point messages instead.

Note that CLASSPATH needs to contain a period (.:) to find the local Draw class ! If this is not the case, the JVM will complain that it cannot find class Draw !




1999-08-19