Load balancing demo instructions


0. Start ActiveMQ


1. Start the LoadServer application

The application will connect with Apache ActiveMQ on localhost 
and create a directory for outgoing files. The ActiveMQ Server 
address may be specified as a command line parameter.

Copy a file to the files directory. The LoadServer will now 
send it every five seconds to a ActiveMQ queue, including the
file name, file size and a sequence number.

For safety reasons in this demo, the file will not be deleted. 


2. Start the LoadClient application

The application will connect with Apache ActiveMQ on localhost 
and create a directory for incoming files. The ActiveMQ Server 
address may be specified as a command line parameter.

If the LoadClient finds a file, it will be downloaded with a
filename including a time stamp.


3. Load balancing

If you start the LoadClient multiple times, ActiveMQ will send
the files to all running clients.

For example, if you have two clients running, files with odd 
sequence numbers will be sent to the first client, and all 
files with even sequence numbers will be sent to the second 
client.