Commit e29d5a1a authored by ssalve's avatar ssalve

Sarita: Done changed for generisUtility to E12GenericUtility and getConnection on 08MARCH2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181792 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c37bdf1e
package ibase.webitm.ejb.fin;
import ibase.system.config.ConnDriver;
//import ibase.utility.E12GenericUtility;
import ibase.utility.E12GenericUtility;
import ibase.utility.UserInfoBean;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
......@@ -10,7 +10,7 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import ibase.webitm.utility.GenericUtility;
//import ibase.webitm.utility.GenericUtility;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
......@@ -24,8 +24,9 @@ import ibase.webitm.ejb.ValidatorEJB;
public class AccountsIC extends ValidatorEJB implements AccountsICRemote, AccountsICLocal
{
//changes and commented by sarita on 01/06/2017
//E12GenericUtility genericUtility = new E12GenericUtility();
GenericUtility genericUtility = GenericUtility.getInstance();
//changed by sarita on 09MAR2018
E12GenericUtility genericUtility = new E12GenericUtility();
//GenericUtility genericUtility = GenericUtility.getInstance();
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
......@@ -65,8 +66,9 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException
{
//changes and commented by sarita on 01/06/2017
//E12GenericUtility genericUtility = new E12GenericUtility();
GenericUtility genericUtility = GenericUtility.getInstance();
//changed by sarita on 09MAR2018
E12GenericUtility genericUtility = new E12GenericUtility();
//GenericUtility genericUtility = GenericUtility.getInstance();
int childNodeLength = 0;
int currentFormNo=0;
int ctr=0,cnt=0;
......@@ -92,11 +94,12 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
try
{
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//conn = getConnection();
connDriver = new ConnDriver();
//changed by sarita on 09MAR2018
conn = getConnection();
/*connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
connDriver = null;*/
//changes and commented by sarita for DBConnection on 01/06/2017 :END
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if(objContext != null && objContext.trim().length() > 0)
......@@ -448,11 +451,12 @@ public class AccountsIC extends ValidatorEJB implements AccountsICRemote, Accoun
try
{
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//conn = getConnection();
connDriver = new ConnDriver();
//changed by sarita on 09MARCH2018
conn = getConnection();
/*connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
connDriver = null;*/
//changes and commented by sarita for DBConnection on 01/06/2017 :END
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
......
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