public static void main(String[] args) {
try{
Context jndiContext = new InitialContext();
Object ref = jndiContext.lookup("LoanManagerHomeRemote");
LoanManagerHomeRemote home = (LoanManagerHomeRemote)
PortableRemoteObject.narrow(ref, LoanManagerHomeRemote.class);
LoanManagerRemote loanmanager = home.create();
// Get a list of all denied loans
List deniedLoans = loanmanager.deniedLoans();
if(deniedLoans!=null){