{
InitialContext ctx = new InitialContext();
Calculator calculator = (Calculator) ctx.lookup("Calculator");
System.out.println("1 + 1 = " + calculator.add(1, 1));
System.out.println("1 - 1 = " + calculator.subtract(1, 1));
// now let's use the customer bean to ensure that the entity manager is bound
// to jndi
CustomerManager customerManager = (CustomerManager) ctx.lookup("CustomerManager");
long id = customerManager.createCustomer("Jaikiran");