Commit f3d2063d authored by ssalve's avatar ssalve

Sarita : done changes to add getConnection instead getConnectionDB("DriverITM") on 27DEC2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177264 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f45a19c2
...@@ -74,9 +74,11 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal ...@@ -74,9 +74,11 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
System.out.println("XML String="+domString); System.out.println("XML String="+domString);
System.out.println("Connection not found from Framework so creating new"); System.out.println("Connection not found from Framework so creating new");
conn = connDriver.getConnectDB("DriverITM"); //Added & replace by sarita on 27DEC2017
/*conn = connDriver.getConnectDB("DriverITM");
connDriver = null; connDriver = null;
conn.setAutoCommit(false); conn.setAutoCommit(false);*/
conn = getConnection();
siteCode = checkNullAndTrim((genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode"))); siteCode = checkNullAndTrim((genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSiteCode")));
System.out.println("Site Code="+siteCode); System.out.println("Site Code="+siteCode);
...@@ -2043,7 +2045,9 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal ...@@ -2043,7 +2045,9 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
Statement stmt = null; Statement stmt = null;
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Added and replace by sarita on 27DEC2017
/*conn = connDriver.getConnectDB("DriverITM");*/
conn = getConnection();
stmt = conn.createStatement(); stmt = conn.createStatement();
char type = checkIntegralQty.charAt(0); char type = checkIntegralQty.charAt(0);
...@@ -2558,7 +2562,9 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal ...@@ -2558,7 +2562,9 @@ public class PalletOutPos extends ValidatorEJB implements PalletOutPosLocal, Pal
double noArt = 0.0D; double noArt1 = 0.0D; double noArt2 = 0.0D; double noArt = 0.0D; double noArt1 = 0.0D; double noArt2 = 0.0D;
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Added and replace by sarita on 27DEC2017
/*conn = connDriver.getConnectDB("DriverITM");*/
conn = getConnection();
stmt = conn.createStatement(); stmt = conn.createStatement();
System.out.println("type :" + type); System.out.println("type :" + type);
switch (type) switch (type)
......
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