Package org.jboss.tutorial.ssl.bean

Examples of org.jboss.tutorial.ssl.bean.Calculator.divide()


      System.out.println("1 + 1 = " + sslCalculator.add(1, 1));

      System.out.println("Kabir is not a teacher so he cannot do division");
      try
      {
         sslCalculator.divide(16, 4);
         throw new RuntimeException("ERROR - User with insufficient role was allowed to operate on bean");
      }
      catch (EJBAccessException  ex)
      {
         System.out.println("Caught expected EJBAccessException : " + ex.getMessage());
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.