Commit 2bfa9157 authored by ssalve's avatar ssalve

Sarita : Done changes to 1. remove Lookup for ITMDBAccessEJB and created...

Sarita : Done changes to 1. remove Lookup for ITMDBAccessEJB and created object and  2. use connection method of ITMDBAccessEJB for calling getErrorString 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187963 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6a8e6e20
......@@ -20,7 +20,8 @@ import ibase.utility.BaseException;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessLocal;
import ibase.webitm.ejb.ITMDBAccessEJB;//Added by sarita on 20 JULY 18 for [ITMDBAccessEJB]
//import ibase.webitm.ejb.ITMDBAccessLocal;
import ibase.webitm.ejb.adm.AdmCommon;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.TransIDGenerator;
......@@ -136,19 +137,26 @@ public class EmpLvePrkBalTrfConf extends ActionHandlerEJB implements EmpLvePrkBa
String keyString = "";
String refSer = "";
String grade = ""; String cadre = ""; String siteCode = ""; String workSite = ""; String paySite = "";
ITMDBAccessLocal itmDBAccess = null;
EmpLeaveConfLocal empLeaveConf = null;
//Added & Commented by sarita to use object of ITMDBAccessEJB,EmpLeaveConf instead ITMDBAccessLocal,EmpLeaveConfLocal on 20 JULY 18.[START]
/* ITMDBAccessLocal itmDBAccess = null;
EmpLeaveConfLocal empLeaveConf = null;*/
ITMDBAccessEJB itmDBAccess = null;
EmpLeaveConf empLeaveConf = null;
//Added & Commented by sarita to use object of ITMDBAccessEJB,EmpLeaveConf instead ITMDBAccessLocal,EmpLeaveConfLocal on 20 JULY 18.[END]
E12GenericUtility genericUtility = new E12GenericUtility();
boolean successFlag = true;
StringBuffer xmlStringForID = null;
try
{
System.out.println("Inside confirm method of EmpLvePrkBalTrfConf");
AppConnectParm appConnect = new AppConnectParm();
//Added & Commented by sarita to create object instead creating lookup for ITMDBAccessEJB on 20 JULY 18 [START]
/* AppConnectParm appConnect = new AppConnectParm();
InitialContext ctx = new InitialContext(appConnect.getProperty());
itmDBAccess = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local");
empLeaveConf = (EmpLeaveConfLocal)ctx.lookup("ibase/EmpLeaveConf/local");
empLeaveConf = (EmpLeaveConfLocal)ctx.lookup("ibase/EmpLeaveConf/local");*/
itmDBAccess = new ITMDBAccessEJB();
empLeaveConf = new EmpLeaveConf();
//Added & Commented by sarita to create object instead creating lookup for ITMDBAccessEJB on 20 JULY 18 [END]
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
java.util.Date currentDate = new java.util.Date();
String currDateStr = sdf.format(currentDate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment