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());