System.out.println("Starting");
InitialContext ctx = new InitialContext();
EmailSystem emailSystem = (EmailSystem)ctx.lookup("EmailSystemBean/remote");
System.out.println("\nCalling emailLostPassword");
emailSystem.emailLostPassword("whatever");
System.out.println("Waiting 2 seconds");
Thread.sleep(2000);
System.out.println("\nCalling sendBookingConfirmationMessage");
emailSystem.sendBookingConfirmationMessage(100);
System.out.println("Waiting 2 seconds");
Thread.sleep(2000);
System.out.println("\nCalling sendBookingConfirmationMessage");
emailSystem.sendBookingConfirmationMessage(100);
System.out.println("Waiting 2 seconds");
Thread.sleep(2000);
System.out.println("\nCalling sendBookingCancellationMessage");
emailSystem.sendBookingCancellationMessage(100);
System.out.println("Waiting 2 seconds");
Thread.sleep(2000);
System.out.println("\nCalling noop");
emailSystem.noop();
System.out.println("Waiting 2 seconds");
Thread.sleep(2000);
System.out.println("\nCalling noop2");
emailSystem.noop2();
System.out.println("Waiting 2 seconds");
Thread.sleep(2000);
System.out.println("Done");