public class BetClient {
public static void main(String[] args) {
System.out.println("*** STARTING TEST OF BETTING APPLICATION");
BetClient client = new BetClient();
ActorSystem system = client.init();
try {
if (args.length > 0 && args[0].equals("send")) {
client.sendMessages(system);
} else {
client.retrieveMessages(system);
}
} catch (Exception e) {
e.printStackTrace();
} finally {
system.shutdown();
}
}