//loop through all customers
CustomerRemote customer = null;
for (int i = 1; ; i++){
Integer pk = new Integer(i);
try{
customer = customerHome.findByPrimaryKey(pk);
} catch(FinderException fe){
System.out.println("Find Exception: " + fe.getMessage());
break;
} catch(RemoteException re){
System.out.println("Remote Exception: " + re.getMessage());