Commit baa96609 authored by smanohar's avatar smanohar

connection made multi tenancy compatible

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217948 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e68ca4c9
...@@ -191,7 +191,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -191,7 +191,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); conn = getConnection();//connDriver.getConnectDB("DriverITM"); // 16-mar-2020 manoharan
tranType = genericUtility.getColumnValue("tran_type", dom1); tranType = genericUtility.getColumnValue("tran_type", dom1);
tranIdReq = genericUtility.getColumnValue("tran_id__req", dom1); tranIdReq = genericUtility.getColumnValue("tran_id__req", dom1);
// System.out.println("tranType before null :::: " + tranType + "tranIdReq :::: " + tranIdReq); //COMMENTED BY ALKA 19/07/07 AS NOT REQUIRED // System.out.println("tranType before null :::: " + tranType + "tranIdReq :::: " + tranIdReq); //COMMENTED BY ALKA 19/07/07 AS NOT REQUIRED
...@@ -314,7 +314,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -314,7 +314,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
MfgCommon mfgCommon = new MfgCommon(); MfgCommon mfgCommon = new MfgCommon();
try { try {
conn = connDriver.getConnectDB("DriverITM"); conn = getConnection();;//connDriver.getConnectDB("DriverITM"); // 16-mar-2020 manoharan
effDate = genericUtility.getColumnValue("eff_date", dom1); effDate = genericUtility.getColumnValue("eff_date", dom1);
siteCode = genericUtility.getColumnValue("site_code", dom1); siteCode = genericUtility.getColumnValue("site_code", dom1);
...@@ -780,7 +780,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -780,7 +780,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
try { try {
conn = connDriver.getConnectDB("DriverITM"); conn = conn = getConnection();//connDriver.getConnectDB("DriverITM"); // 16-mar-2020 manoharan
woIss = genericUtility.getColumnValue("tran_id", dom1); woIss = genericUtility.getColumnValue("tran_id", dom1);
siteCode = genericUtility.getColumnValue("site_code", dom1); siteCode = genericUtility.getColumnValue("site_code", dom1);
...@@ -1065,7 +1065,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -1065,7 +1065,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); conn = conn = getConnection();//connDriver.getConnectDB("DriverITM"); // 16-mar-2020 manoharan
System.out.println("[Allocating .....]"); System.out.println("[Allocating .....]");
...@@ -2868,7 +2868,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL ...@@ -2868,7 +2868,7 @@ public class WOrderIssueAct extends ActionHandlerEJB implements WOrderIssueActL
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); conn = conn = getConnection();//connDriver.getConnectDB("DriverITM"); // 16-mar-2020 manoharan
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
......
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