/** * Business unit of work This method is used to view a particular selected Customer * * @param customer Id * @return customer details */ public RhccCustInfos viewCustomer(String customerId) throws RemoteException { RhccCustInfos cTmp = null; USFEnv.getLog().writeWarn(" Inside viewCustomer", this, null); // Get the connection RhccCustInfos rhcc_obj = new RhccCustInfos(conn); try { if (conn != null) { cTmp = rhcc_obj.searchCustomerInfo(customerId); USFEnv.getLog() .writeDebug("viewCustomer DB connection, ref: " + conn.toString(), this, null); } } catch (Exception e) { USFEnv.getLog().writeCrit("Error in business EJB: ", this, e); } return cTmp; }