public void testEJBs() throws Exception
{
InitialContext ctx = new InitialContext();
CustomerDAOLocal local = (CustomerDAOLocal) ctx.lookup("CustomerDAOBean/local");
CustomerDAORemote remote = (CustomerDAORemote) ctx.lookup("CustomerDAOBean/remote");
int id = local.createCustomer("Gavin");
Customer cust = local.findCustomer(id);
assertNotNull(cust);
System.out.println("Successfully created and found Gavin from @Local interface");
id = remote.createCustomer("Emmanuel");
cust = remote.findCustomer(id);