* @param loanAmount
*/
public void submitLoanApplication(Integer id, String name, String address, Date birthdate,
String sssNo, Double annualSalary, Double loanAmount) {
CustomerHomeRemote customerHome = null;
CustomerRemote customer = null;
try{
Context jndiContext = new InitialContext();
Object obj = jndiContext.lookup("java:comp/env/ejb/CustomerHomeRemote");
customerHome = (CustomerHomeRemote) PortableRemoteObject.narrow(obj, CustomerHomeRemote.class);
} catch (NamingException ne){
System.out.println("Naming Exception: " + ne.getMessage());
}
try{
customer = customerHome.create(id, name, sssNo, address, birthdate, annualSalary, loanAmount);
submit_count++;
} catch(RemoteException re){
System.out.println("Remote Exception: " + re.getMessage());
} catch(CreateException ce){
System.out.println("Create Exception: " + ce.getMessage());