Commit 7bae7ac1 authored by steurwadkar's avatar steurwadkar

Changed by Manish on 05/07/16 for get connection.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102325 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a2bdc1cf
...@@ -47,13 +47,16 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -47,13 +47,16 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
System.out.println("--------------ActionHandler method of Distribution Pallet Requisition ------------- : ["+tranId+"]"); System.out.println("--------------ActionHandler method of Distribution Pallet Requisition ------------- : ["+tranId+"]");
String retString = ""; String retString = "";
Connection conn = null; Connection conn = null;
ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
Boolean isError = false; Boolean isError = false;
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Changed and Commented By Santosh on 14-06-2016 :[START]
connDriver = null; /*conn = connDriver.getConnectDB("DriverITM");
connDriver = null;*/
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
retString = distPalletRequisition(tranId,xtraParams,forcedFlag,conn); retString = distPalletRequisition(tranId,xtraParams,forcedFlag,conn);
//String sql = "select item_code,line_no,quantity,unit,lot_no,lot_sl,mfg_date,exp_date,pallet_no from distord_issdet where dist_order = ?"; //String sql = "select item_code,line_no,quantity,unit,lot_no,lot_sl,mfg_date,exp_date,pallet_no from distord_issdet where dist_order = ?";
//retString = distPalletRequisition(tranId,xtraParams,forcedFlag,sql,conn); //retString = distPalletRequisition(tranId,xtraParams,forcedFlag,sql,conn);
...@@ -92,13 +95,16 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -92,13 +95,16 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
System.out.println("--------------ActionHandler method of Sorder Pallet Requisition ------------- : ["+tranId+"]"); System.out.println("--------------ActionHandler method of Sorder Pallet Requisition ------------- : ["+tranId+"]");
String retString = ""; String retString = "";
Connection conn = null; Connection conn = null;
ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
Boolean isError = false; Boolean isError = false;
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Changed and Commented By Santosh on 14-06-2016 :[START]
connDriver = null; /*conn = connDriver.getConnectDB("DriverITM");
connDriver = null;*/
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
retString = sorderPalletRequisition(tranId,xtraParams,forcedFlag,conn); retString = sorderPalletRequisition(tranId,xtraParams,forcedFlag,conn);
//String sql = "select item_code,line_no,quantity,unit__std,lot_no,lot_sl,mfg_date,exp_date FROM sordalloc where sale_order = ?"; //String sql = "select item_code,line_no,quantity,unit__std,lot_no,lot_sl,mfg_date,exp_date FROM sordalloc where sale_order = ?";
//retString = distPalletRequisition(tranId,xtraParams,forcedFlag,sql,conn); //retString = distPalletRequisition(tranId,xtraParams,forcedFlag,sql,conn);
...@@ -714,13 +720,16 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR ...@@ -714,13 +720,16 @@ public class PalletRequisitionActEJB extends ActionHandlerEJB implements PalletR
System.out.println("--------------Damage/Hold Stock Transfer out------------- : ["+tranId+"]"); System.out.println("--------------Damage/Hold Stock Transfer out------------- : ["+tranId+"]");
String retString = ""; String retString = "";
Connection conn = null; Connection conn = null;
ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
boolean isError = false; boolean isError = false;
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Changed and Commented By Santosh on 14-06-2016 :[START]
connDriver = null; /*conn = connDriver.getConnectDB("DriverITM");
connDriver = null;*/
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
retString = palletRequestLock(tranId,xtraParams,forcedFlag,conn); retString = palletRequestLock(tranId,xtraParams,forcedFlag,conn);
} }
catch(Exception e) catch(Exception e)
......
...@@ -122,11 +122,14 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -122,11 +122,14 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]"); System.out.println("DOM2----->>["+genericUtility.serializeDom(dom2).toString()+"]");
loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" )); loginSite = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginSiteCode" ));
ConnDriver connDriver = new ConnDriver(); //Changed and Commented By Santosh on 14-06-2016 :[START]
conn = connDriver.getConnectDB("DriverITM"); /*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");*/
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
if (objContext != null && objContext.trim().length() > 0) if (objContext != null && objContext.trim().length() > 0)
...@@ -1250,11 +1253,14 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca ...@@ -1250,11 +1253,14 @@ public class PalletizationIC extends ValidatorEJB implements PalletizationICLoca
chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode")); chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId")); chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
System.out.println("loginEmpCode---->>["+loginEmpCode+"] chgUser---->>["+chgUser+"]"); System.out.println("loginEmpCode---->>["+loginEmpCode+"] chgUser---->>["+chgUser+"]");
ConnDriver connDriver = new ConnDriver(); //Changed and Commented By Santosh on 14-06-2016 :[START]
/*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" ); conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null; connDriver = null;*/
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
if( objContext != null && objContext.trim().length() > 0 ) if( objContext != null && objContext.trim().length() > 0 )
{ {
currentFormNo = Integer.parseInt( objContext ); currentFormNo = Integer.parseInt( objContext );
......
...@@ -112,11 +112,13 @@ public class PhysicalCountIC extends ValidatorEJB implements PhysicalCountICLoca ...@@ -112,11 +112,13 @@ public class PhysicalCountIC extends ValidatorEJB implements PhysicalCountICLoca
try try
{ {
System.out.println("<<========= Inside wfValData ===========>>"); // remove System.out.println("<<========= Inside wfValData ===========>>"); // remove
//Changed and Commented By Santosh on 14-06-2016 :[START]
ConnDriver connDriver = new ConnDriver(); /*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");*/
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
siteCode = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"); siteCode = getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
...@@ -439,10 +441,13 @@ public class PhysicalCountIC extends ValidatorEJB implements PhysicalCountICLoca ...@@ -439,10 +441,13 @@ public class PhysicalCountIC extends ValidatorEJB implements PhysicalCountICLoca
try try
{ {
System.out.println("<<========= Inside itemChanged ===========>>"); // remove System.out.println("<<========= Inside itemChanged ===========>>"); // remove
ConnDriver connDriver = new ConnDriver(); //Changed and Commented By Santosh on 14-06-2016 :[START]
/*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" ); conn = connDriver.getConnectDB( "DriverITM" );
connDriver = null; connDriver = null;*/
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs= null; ResultSet rs= null;
......
...@@ -218,9 +218,12 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -218,9 +218,12 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
try try
{ {
int currentFormNo = 0; int currentFormNo = 0;
ConnDriver connDriver = new ConnDriver(); //Changed and Commented By Santosh on 14-06-2016 :[START]
conn = connDriver.getConnectDB( "DriverValidator" ); /*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverValidator" );*/
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getApplDateFormat());
String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" ); String userId = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" );
...@@ -3888,9 +3891,13 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC ...@@ -3888,9 +3891,13 @@ public class ReplIssIC extends ValidatorEJB implements ReplIssICLocal, ReplIssIC
DateFormat dtFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); DateFormat dtFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
String dbDateFormat = genericUtility.getDBDateFormat(); String dbDateFormat = genericUtility.getDBDateFormat();
String applDateFormat = genericUtility.getApplDateFormat(); String applDateFormat = genericUtility.getApplDateFormat();
ConnDriver connDriver = new ConnDriver(); //Changed and Commented By Santosh on 14-06-2016 :[START]
conn = connDriver.getConnectDB( "DriverITM" ); /*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" ); */
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
columnValue = genericUtility.getColumnValue( currentColumn, currFormDataDom ); columnValue = genericUtility.getColumnValue( currentColumn, currFormDataDom );
if( objContext != null && objContext.trim().length() > 0 ) 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