This demo demonstrates the use of Glacier2 session helpers and Swing to create a graphical client for the simple chat server.
First follow the instructions in the C++ Glacier2 simpleChat demo README to start the server and the Glacier2 router.
In a separate window, start the swing client:
java -jar build/libs/client.jar
If you plan to run this demo using clients running on different hosts
than the glacier2router, it is necessary to first modify the
configuration. You need to change the Glacier2.Client.Endpoints
property in config.glacier2
and the Ice.Default.Router
property in
config.client
. In all cases you must set the host parameter of the
-h host
endpoint option to the actual external address of the machine
on which glacier2router is running.