Examples of EmailSystem


Examples of org.jboss.tutorial.interceptor.bean.EmailSystem

{
   public static void main(String[] args) throws Exception
   {
      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");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.