Commit 53e9ea4f authored by ssalve's avatar ssalve

changes done for DBConnection


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105723 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 28074536
......@@ -129,10 +129,13 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
{
if(conn == null)
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//conn.setAutoCommit(false);
//connDriver = null;
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :END
}
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId");
......@@ -540,10 +543,13 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
if(conn == null)
{
connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//conn.setAutoCommit(false);
//connDriver = null;
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :END
pInsertStmt = conn.prepareStatement(batchInesertSql);
pUpdateStmt = conn.prepareStatement(batchUpdateSql);
pDeleteStmt = conn.prepareStatement(batchDeleteSql);
......@@ -1486,10 +1492,13 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
{
if(conn == null)
{
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver = null;
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//conn.setAutoCommit(false);
//connDriver = null;
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :END
}
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId");
......
......@@ -150,10 +150,13 @@ public String auditTrialSch(String xtraParams) throws Exception
{
sysDate = new java.sql.Timestamp(System.currentTimeMillis());
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
conn.setAutoCommit(false);
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//ConnDriver connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM");
//connDriver = null;
//conn.setAutoCommit(false);
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :END
SimpleDateFormat sdf1 = new SimpleDateFormat(e12GenericUtility.getDBDateFormat());
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(e12GenericUtility.getApplDateFormat());
java.util.Calendar cal = java.util.Calendar.getInstance();
......
......@@ -106,8 +106,11 @@ public class WOTrackStatusIC extends ValidatorEJB implements WOTrackStatusICLoca
{
System.out.println("WOTrackStatusIC.java ::wfvaldata called !!!!!!");
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//conn = connDriver.getConnectDB("DriverITM");
//connDriver = null;
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :END
userId = getValueFromXTRA_PARAMS(xtraParams,"loginCode");
if(objContext != null && objContext.trim().length()>0)
{
......@@ -570,10 +573,12 @@ public class WOTrackStatusIC extends ValidatorEJB implements WOTrackStatusICLoca
SimpleDateFormat sdfAppl ;
try
{
conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false);
connDriver=null;
//changes and commented by sarita for DBConnection on 01/06/2017 :START
//conn = connDriver.getConnectDB("DriverITM");
//conn.setAutoCommit(false);
//connDriver=null;
conn = getConnection();
//changes and commented by sarita for DBConnection on 01/06/2017 :END
distcommon=new DistCommon();
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
if(objContext != null && objContext.trim().length()>0)
......
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