Commit a2bdc1cf 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@102324 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7eb8f324
...@@ -95,11 +95,14 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -95,11 +95,14 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
String item_barcode = ""; String item_barcode = "";
// Changed by Sneha on 23-06-2016 [End] // Changed by Sneha on 23-06-2016 [End]
ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginCode");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat simpleDateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat());
...@@ -444,7 +447,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -444,7 +447,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
{ {
try try
{ {
connDriver = null; //connDriver = null;
if(conn != null) if(conn != null)
{ {
if(rs != null) if(rs != null)
...@@ -545,7 +548,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -545,7 +548,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
int currentFormNo = 0; int currentFormNo = 0;
StringBuffer valueXmlString = new StringBuffer(); StringBuffer valueXmlString = new StringBuffer();
ConnDriver connDriver = new ConnDriver(); //ConnDriver connDriver = new ConnDriver();
String sqlQueryDisparam; String sqlQueryDisparam;
String strLocId = ""; String strLocId = "";
String sqlQueryLocation; String sqlQueryLocation;
...@@ -555,10 +558,13 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -555,10 +558,13 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); //Changed and Commented By Santosh on 14-06-2016 :[START]
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changed and Commented By Santosh on 14-06-2016 :[END]
System.out.println("user id is equal to ===============> "+userId); System.out.println("user id is equal to ===============> "+userId);
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; //connDriver = null;
String dateFormat = genericUtility.getApplDateFormat(); // Added by Parikshit Kumbhar on 08/07/2015 [to set date format] String dateFormat = genericUtility.getApplDateFormat(); // Added by Parikshit Kumbhar on 08/07/2015 [to set date format]
//Added by Chetan Mahajan on date:06/02/2015 [Getting loc_code from disparam table] Start //Added by Chetan Mahajan on date:06/02/2015 [Getting loc_code from disparam table] Start
sqlQueryDisparam = "select var_value from disparm where var_name='PGRL_INVSTAT'"; sqlQueryDisparam = "select var_value from disparm where var_name='PGRL_INVSTAT'";
...@@ -978,7 +984,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -978,7 +984,7 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
{ {
try try
{ {
connDriver = null; //connDriver = null;
if(conn != null) if(conn != null)
{ {
if(rs != null) if(rs != null)
...@@ -1107,10 +1113,11 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote, ...@@ -1107,10 +1113,11 @@ public class DDProductWizEJB extends ValidatorEJB implements DDProductWizRemote,
{ {
System.out.println("Inside getList---->loginCode["+loginCode+"]FIeld["+field+"]Values["+values+"]");//Changed by wasim on 14-07-2016 to print parameter values System.out.println("Inside getList---->loginCode["+loginCode+"]FIeld["+field+"]Values["+values+"]");//Changed by wasim on 14-07-2016 to print parameter values
//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();
//Changed and Commented By Santosh on 14-06-2016 :[END]
if (field.equals("item_parnt")) if (field.equals("item_parnt"))
{ {
sql = " SELECT ITEM_CODE, DESCR FROM ITEM WHERE ITEM_PARNT IS NULL"; sql = " SELECT ITEM_CODE, DESCR FROM ITEM WHERE ITEM_PARNT IS NULL";
......
...@@ -430,9 +430,12 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR ...@@ -430,9 +430,12 @@ public class DDProductWizPosEJB extends ValidatorEJB implements DDProductWizPosR
if (conn == null) if (conn == null)
{ {
System.out.println("in conn"); System.out.println("in conn");
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]
localConnection = true; localConnection = true;
} }
......
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