HashMap hm = null;
getPATH();
try {
InitialContext ic = CVUtility.getInitialContext();
LoginHome lh = (LoginHome) ic.lookup("Login");
Login remote = (Login) lh.create();
remote.setDataSource(dataSource);
hm = (HashMap) remote.authenticateUser(userName, passwd);
//checking hashmap
if (hm != null && hm.get("userid")!= null && hm.get("individualid")!= null && hm.get("lastName")!= null && hm.get("firstName")!= null ) {
session.set("authenticateUserHashMap", hm);