Commit 8103da87 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@187959 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e882f972
...@@ -4,7 +4,8 @@ import ibase.system.config.AppConnectParm;//Added by Anjali Rawankar on[21/08/20 ...@@ -4,7 +4,8 @@ import ibase.system.config.AppConnectParm;//Added by Anjali Rawankar on[21/08/20
import ibase.utility.CommonConstants; import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility; import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB; import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessLocal;//Added by Anjali Rawankar on[21/08/2017][For ITMDBACCESS] import ibase.webitm.ejb.ITMDBAccessEJB;//Added by sarita on[20/07/2018][For ITMDBACCESS]
//import ibase.webitm.ejb.ITMDBAccessLocal;//Added by Anjali Rawankar on[21/08/2017][For ITMDBACCESS]
import ibase.webitm.ejb.adm.AdmCommon; import ibase.webitm.ejb.adm.AdmCommon;
import ibase.webitm.ejb.adm.AttdProcess; import ibase.webitm.ejb.adm.AttdProcess;
import ibase.webitm.ejb.adm.LeaveEncase; import ibase.webitm.ejb.adm.LeaveEncase;
...@@ -105,7 +106,10 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal, ...@@ -105,7 +106,10 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal,
*/ */
AppConnectParm appConnect = null; AppConnectParm appConnect = null;
InitialContext initialCtx = null; InitialContext initialCtx = null;
ITMDBAccessLocal itmDBAccess = null; //Added & Commented by sarita to use object of ITMDBAccessEJB instead ITMDBAccessLocal on 20 JULY 18.[START]
//ITMDBAccessLocal itmDBAccess = null;
ITMDBAccessEJB itmDBAccess = null;
//Added & Commented by sarita to use object of ITMDBAccessEJB instead ITMDBAccessLocal on 20 JULY 18.[END]
/*[Added for itmDbAccess] /*[Added for itmDbAccess]
* Modified by Anjali Rawankar on[22/08/2017][End] * Modified by Anjali Rawankar on[22/08/2017][End]
*/ */
...@@ -138,9 +142,12 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal, ...@@ -138,9 +142,12 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal,
/*Modified by Anjali Rawankar on[22/08/2017][Start] /*Modified by Anjali Rawankar on[22/08/2017][Start]
*[Added for itmDbAccess] *[Added for itmDbAccess]
*/ */
appConnect = new AppConnectParm(); //Added & Commented by sarita to create object instead creating lookup for ITMDBAccessEJB on 20 JULY 18 [START]
/*appConnect = new AppConnectParm();
initialCtx = new InitialContext(appConnect.getProperty()); initialCtx = new InitialContext(appConnect.getProperty());
itmDBAccess = (ITMDBAccessLocal)initialCtx.lookup("ibase/ITMDBAccessEJB/local"); itmDBAccess = (ITMDBAccessLocal)initialCtx.lookup("ibase/ITMDBAccessEJB/local");*/
itmDBAccess = new ITMDBAccessEJB();
//Added & Commented by sarita to create object instead creating lookup for ITMDBAccessEJB on 20 JULY 18 [END]
/*[Added for itmDbAccess] /*[Added for itmDbAccess]
* Modified by Anjali Rawankar on[22/08/2017][End] * Modified by Anjali Rawankar on[22/08/2017][End]
*/ */
...@@ -169,7 +176,10 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal, ...@@ -169,7 +176,10 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal,
/*Modified by Anjali Rawankar on[22/08/2017][Start] /*Modified by Anjali Rawankar on[22/08/2017][Start]
*[Added for itmDbAccess]*/ *[Added for itmDbAccess]*/
//errString = getErrorString( errFldName, errCode, this.userId ); //errString = getErrorString( errFldName, errCode, this.userId );
errString = itmDBAccess.getErrorString( errFldName, errCode, this.userId ); //Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [START]
//errString = itmDBAccess.getErrorString( errFldName, errCode, this.userId );
errString = itmDBAccess.getErrorString(errFldName,errCode,this.userId,"",conn);
//Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [END]
/*[Added for itmDbAccess] /*[Added for itmDbAccess]
*Modified by Anjali Rawankar on[22/08/2017][End]*/ *Modified by Anjali Rawankar on[22/08/2017][End]*/
...@@ -192,7 +202,10 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal, ...@@ -192,7 +202,10 @@ public class EmpLeaveConf extends ActionHandlerEJB implements EmpLeaveConfLocal,
/*Modified by Anjali Rawankar on[22/08/2017][Start] /*Modified by Anjali Rawankar on[22/08/2017][Start]
*[Added for itmDbAccess]*/ *[Added for itmDbAccess]*/
//errString = getErrorString( "", "VTSUCC1" , this.userId ); //errString = getErrorString( "", "VTSUCC1" , this.userId );
errString = itmDBAccess.getErrorString( "", "VTSUCC1" , this.userId ); //Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [START]
//errString = itmDBAccess.getErrorString( "", "VTSUCC1" , this.userId );
errString = itmDBAccess.getErrorString("","VTSUCC1",this.userId,"",conn);
//Added and commented by sarita on to call getErrorString connection method on 20 JULY 2018 [END]
/*[Added for itmDbAccess] /*[Added for itmDbAccess]
*Modified by Anjali Rawankar on[22/08/2017][End]*/ *Modified by Anjali Rawankar on[22/08/2017][End]*/
} }
......
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