Commit 25ddce39 authored by blad's avatar blad

Updated components has been uploaded for added new getConnection() method in DIS.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@40141 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e2c6498d
[Dolphin] [Dolphin]
HeaderColumnWidths=309,74,146 HeaderColumnWidths=289,74,146
SortOrder=1 SortOrder=1
SortRole=date SortRole=date
Sorting=2 Sorting=2
Timestamp=2016,6,10,19,32,57 Timestamp=2016,6,14,17,36,54
Version=3 Version=3
ViewMode=1 ViewMode=1
...@@ -166,7 +166,11 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso ...@@ -166,7 +166,11 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
connCP = connDriver.getConnectDB("DriverCP"); //Changes and Commented By Bhushan on 13-06-2016 :START
//connCP = connDriver.getConnectDB("DriverCP");
connCP = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
connCP.setAutoCommit(false); connCP.setAutoCommit(false);
connDriver = null; connDriver = null;
tranDate = genericUtility.getColumnValue("tran_date",dom1); tranDate = genericUtility.getColumnValue("tran_date",dom1);
......
...@@ -903,7 +903,10 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo ...@@ -903,7 +903,10 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
generateTranIdSql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE UPPER(TRAN_WINDOW)= ?"; generateTranIdSql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE UPPER(TRAN_WINDOW)= ?";
System.out.println("[ChargeBackLocConfEJB :: generateTranId : input Paramaters][windowName]["+windowName+"][tranDate]["+tranDate+"][siteCode]["+siteCode+"]"); System.out.println("[ChargeBackLocConfEJB :: generateTranId : input Paramaters][windowName]["+windowName+"][tranDate]["+tranDate+"][siteCode]["+siteCode+"]");
......
...@@ -60,7 +60,10 @@ public class CustStockPos extends ValidatorEJB //implements SessionBean ...@@ -60,7 +60,10 @@ public class CustStockPos extends ValidatorEJB //implements SessionBean
System.out.println("connection is null"); System.out.println("connection is null");
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverValidator");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
isLocalConn = true; isLocalConn = true;
conn.setAutoCommit( false ); conn.setAutoCommit( false );
connDriver = null; connDriver = null;
......
...@@ -85,7 +85,10 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList ...@@ -85,7 +85,10 @@ public class CustomerPriceList extends ValidatorEJB implements CustomerPriceList
try try
{ {
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
connDriver = null; connDriver = null;
groupCode = getValueFromXTRA_PARAMS( xtraParams, "code" ); groupCode = getValueFromXTRA_PARAMS( xtraParams, "code" );
if( objContext != null && objContext.trim().length()>0 ) if( objContext != null && objContext.trim().length()>0 )
......
...@@ -1091,7 +1091,10 @@ public class DistDemandMatrixPrc extends ProcessEJB implements DistDemandMatrixP ...@@ -1091,7 +1091,10 @@ public class DistDemandMatrixPrc extends ProcessEJB implements DistDemandMatrixP
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
generateTranIdSql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE UPPER(TRAN_WINDOW)= ?"; generateTranIdSql = "SELECT KEY_STRING, TRAN_ID_COL, REF_SER FROM TRANSETUP WHERE UPPER(TRAN_WINDOW)= ?";
System.out.println("[DistDemandMatrixEJB :: generateTranId : input Paramaters][windowName]["+windowName+"][tranDate]["+tranDate+"][siteCode]["+siteCode+"]"); System.out.println("[DistDemandMatrixEJB :: generateTranId : input Paramaters][windowName]["+windowName+"][tranDate]["+tranDate+"][siteCode]["+siteCode+"]");
System.out.println( "[DistDemandMatrixEJB : generateTranId : Tran generator Sql[" + generateTranIdSql+"]" ); System.out.println( "[DistDemandMatrixEJB : generateTranId : Tran generator Sql[" + generateTranIdSql+"]" );
......
...@@ -73,7 +73,10 @@ public class DistributionOrderTypeIC extends ValidatorEJB implements Distributio ...@@ -73,7 +73,10 @@ public class DistributionOrderTypeIC extends ValidatorEJB implements Distributio
String childNodeName = ""; String childNodeName = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if (objContext != null && objContext.trim().length() > 0) { if (objContext != null && objContext.trim().length() > 0) {
......
...@@ -69,7 +69,10 @@ public class InsuranceAgentIC extends ValidatorEJB implements InsuranceAgentICRe ...@@ -69,7 +69,10 @@ public class InsuranceAgentIC extends ValidatorEJB implements InsuranceAgentICRe
String childNodeName = ""; String childNodeName = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if (objContext != null && objContext.trim().length() > 0) { if (objContext != null && objContext.trim().length() > 0) {
......
...@@ -1044,7 +1044,10 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob ...@@ -1044,7 +1044,10 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
columnValue = genericUtility.getColumnValue( currentColumn, dom ); columnValue = genericUtility.getColumnValue( currentColumn, dom );
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverValidator");
conn = getConnection();
//Changes and Commented By Bhushan on 13-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 );
......
...@@ -554,7 +554,10 @@ public class LotStatIC extends ValidatorEJB implements LotStatICLocal, LotStatIC ...@@ -554,7 +554,10 @@ public class LotStatIC extends ValidatorEJB implements LotStatICLocal, LotStatIC
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverValidator");
conn = getConnection();
//Changes and Commented By Bhushan on 13-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 );
......
...@@ -420,7 +420,10 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal, ...@@ -420,7 +420,10 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
boolean invstatus; boolean invstatus;
try { try {
conn1 = connDriver1.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn1 = connDriver1.getConnectDB("DriverITM");
conn1 = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
for (String key : partialInvMap.keySet()) { for (String key : partialInvMap.keySet()) {
String id[] = key.split(":"); String id[] = key.split(":");
splitPartial.add(id[0]); splitPartial.add(id[0]);
...@@ -1987,7 +1990,10 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal, ...@@ -1987,7 +1990,10 @@ public class PODProcess extends ProcessEJB implements PODProcessLocal,
boolean invSreturn = false; boolean invSreturn = false;
ConnDriver connDriver1 = new ConnDriver(); ConnDriver connDriver1 = new ConnDriver();
try { try {
conn1 = connDriver1.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn1 = connDriver1.getConnectDB("DriverITM");
conn1 = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
/* /*
* sql="select sum(d.quantity__resale),d.item_code,d.quantity__inv * sql="select sum(d.quantity__resale),d.item_code,d.quantity__inv
* from spl_sales_por_hdr h,spl_sales_por_det d" +"where h.TRAN_ID = * from spl_sales_por_hdr h,spl_sales_por_det d" +"where h.TRAN_ID =
......
...@@ -4905,7 +4905,10 @@ POrderICRemote, POrderICLocal { ...@@ -4905,7 +4905,10 @@ POrderICRemote, POrderICLocal {
try try
{ {
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
conn = connDriver.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 09-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END
connDriver = null; connDriver = null;
DistCommon distComm = new DistCommon(); DistCommon distComm = new DistCommon();
FinCommon finCommon = new FinCommon(); FinCommon finCommon = new FinCommon();
......
...@@ -77,7 +77,10 @@ public class PriceListTranIC extends ValidatorEJB implements ...@@ -77,7 +77,10 @@ public class PriceListTranIC extends ValidatorEJB implements
String childNodeName = "", minQty = "", maxQty = "", maxRate = "", minRate = "", validUpto = "", effFrom = "", rate = ""; String childNodeName = "", minQty = "", maxQty = "", maxRate = "", minRate = "", validUpto = "", effFrom = "", rate = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 09-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
SimpleDateFormat sdf = new SimpleDateFormat( SimpleDateFormat sdf = new SimpleDateFormat(
genericUtility.getDispDateFormat()); genericUtility.getDispDateFormat());
......
...@@ -75,7 +75,10 @@ public class ProjectAmdIC extends ValidatorEJB implements ProjectAmdICRemote, Pr ...@@ -75,7 +75,10 @@ public class ProjectAmdIC extends ValidatorEJB implements ProjectAmdICRemote, Pr
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
userId = getValueFromXTRA_PARAMS(xtraParams, "loginsitecode"); userId = getValueFromXTRA_PARAMS(xtraParams, "loginsitecode");
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
DateFormat dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat(),Locale.ENGLISH); DateFormat dateFormat = new SimpleDateFormat(genericUtility.getApplDateFormat(),Locale.ENGLISH);
......
...@@ -78,7 +78,10 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements ...@@ -78,7 +78,10 @@ public class ProofOfDeliveryConf extends ActionHandlerEJB implements
try { try {
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverValidator");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
String confirmed = ""; String confirmed = "";
sql = "select confirmed,wf_status,invoice_id from spl_sales_por_hdr WHERE tran_id = ?"; sql = "select confirmed,wf_status,invoice_id from spl_sales_por_hdr WHERE tran_id = ?";
......
...@@ -86,7 +86,10 @@ public class ProofOfDeliveryDefault extends ActionHandlerEJB implements ProofOfD ...@@ -86,7 +86,10 @@ public class ProofOfDeliveryDefault extends ActionHandlerEJB implements ProofOfD
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverValidator");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
invoiceID = genutility.getColumnValue("invoice_id", dom); invoiceID = genutility.getColumnValue("invoice_id", dom);
System.out.println("------invoiceID--------- :"+invoiceID); System.out.println("------invoiceID--------- :"+invoiceID);
......
...@@ -51,7 +51,10 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe ...@@ -51,7 +51,10 @@ public class ProofOfDeliveryReject extends ActionHandlerEJB implements ProofOfDe
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverValidator");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
String wfStatus="",confirmed="",rejectionRemark=""; String wfStatus="",confirmed="",rejectionRemark="";
sql = "select confirmed,wf_status from spl_sales_por_hdr WHERE tran_id = ?"; sql = "select confirmed,wf_status from spl_sales_por_hdr WHERE tran_id = ?";
......
...@@ -287,7 +287,10 @@ public class PurTermTable extends ValidatorEJB implements PurTermTableLocal, Pur ...@@ -287,7 +287,10 @@ public class PurTermTable extends ValidatorEJB implements PurTermTableLocal, Pur
dateFormat2=new SimpleDateFormat(genericUtility.getApplDateFormat()); dateFormat2=new SimpleDateFormat(genericUtility.getApplDateFormat());
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
connObject = connDriver.getConnectDB("DriverValidator"); //Changes and Commented By Bhushan on 13-06-2016 :START
//connObject = connDriver.getConnectDB("DriverValidator");
connObject = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginEmpCode" )); loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginEmpCode" ));
System.out.println("loginCode =["+loginCode+"]"); System.out.println("loginCode =["+loginCode+"]");
......
...@@ -197,7 +197,10 @@ public class SalesRealisationProcess extends ProcessEJB implements SalesRealisa ...@@ -197,7 +197,10 @@ public class SalesRealisationProcess extends ProcessEJB implements SalesRealisa
{ {
itmDBAccess = new ITMDBAccessEJB(); itmDBAccess = new ITMDBAccessEJB();
conndriver = new ConnDriver(); conndriver = new ConnDriver();
connectionObject = conndriver.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//connectionObject = conndriver.getConnectDB("DriverITM");
connectionObject = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conndriver = null; conndriver = null;
connectionObject.setAutoCommit( false ); connectionObject.setAutoCommit( false );
......
...@@ -3925,7 +3925,10 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote ...@@ -3925,7 +3925,10 @@ public class SordAtt extends ValidatorEJB implements SordAttLocal, SordAttRemote
{ {
if (conn == null) if (conn == null)
{ {
conn = connDrv.getConnectDB("Driver"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDrv.getConnectDB("Driver");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
connState = true; connState = true;
} }
stmt = conn.createStatement(); stmt = conn.createStatement();
......
...@@ -4101,7 +4101,10 @@ public class SorderAtt extends ValidatorEJB implements SorderAttLocal, SorderAtt ...@@ -4101,7 +4101,10 @@ public class SorderAtt extends ValidatorEJB implements SorderAttLocal, SorderAtt
{ {
if (conn == null) if (conn == null)
{ {
conn = connDrv.getConnectDB("Driver"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDrv.getConnectDB("Driver");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
connState = true; connState = true;
} }
stmt = conn.createStatement(); stmt = conn.createStatement();
......
...@@ -70,7 +70,10 @@ ITMDBAccessEJB itmdbAccessEJB = new ITMDBAccessEJB(); ...@@ -70,7 +70,10 @@ ITMDBAccessEJB itmdbAccessEJB = new ITMDBAccessEJB();
try { try {
System.out.println("::in wfvalData doc::"); System.out.println("::in wfvalData doc::");
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if(objContext != null && objContext.trim().length() > 0){ if(objContext != null && objContext.trim().length() > 0){
currentFormNo = Integer.parseInt(objContext); currentFormNo = Integer.parseInt(objContext);
......
...@@ -70,7 +70,10 @@ public class TaxBaseIC extends ValidatorEJB implements TaxBaseICRemote, TaxBaseI ...@@ -70,7 +70,10 @@ public class TaxBaseIC extends ValidatorEJB implements TaxBaseICRemote, TaxBaseI
String childNodeName = ""; String childNodeName = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if (objContext != null && objContext.trim().length() > 0) { if (objContext != null && objContext.trim().length() > 0) {
......
...@@ -71,7 +71,10 @@ public class TaxDefermentIC extends ValidatorEJB implements TaxDefermentICRemote ...@@ -71,7 +71,10 @@ public class TaxDefermentIC extends ValidatorEJB implements TaxDefermentICRemote
String childNodeName = ""; String childNodeName = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if (objContext != null && objContext.trim().length() > 0) { if (objContext != null && objContext.trim().length() > 0) {
......
...@@ -71,7 +71,10 @@ public String wfValData(Document dom, Document dom1, Document dom2, String objCo ...@@ -71,7 +71,10 @@ public String wfValData(Document dom, Document dom1, Document dom2, String objCo
String childNodeName = ""; String childNodeName = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if (objContext != null && objContext.trim().length() > 0) { if (objContext != null && objContext.trim().length() > 0) {
......
...@@ -161,7 +161,11 @@ public class TaxInputCrtXmlPrc extends ProcessEJB implements TaxInputCrtXmlPrcLo ...@@ -161,7 +161,11 @@ public class TaxInputCrtXmlPrc extends ProcessEJB implements TaxInputCrtXmlPrcLo
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"); chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId");
loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"); loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
connITM2INI = connDriver.getConnectDB("DriverCP"); //Changes and Commented By Bhushan on 13-06-2016 :START
//connITM2INI = connDriver.getConnectDB("DriverCP");
connITM2INI = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
connDriver = null; connDriver = null;
connITM2INI.setAutoCommit(false); connITM2INI.setAutoCommit(false);
connDriver = new ConnDriver(); connDriver = new ConnDriver();
......
...@@ -70,7 +70,10 @@ public class TransporterModeIC extends ValidatorEJB implements TransporterModeIC ...@@ -70,7 +70,10 @@ public class TransporterModeIC extends ValidatorEJB implements TransporterModeIC
String childNodeName = ""; String childNodeName = "";
try { try {
ConnDriver con = new ConnDriver(); ConnDriver con = new ConnDriver();
conn = con.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = con.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, userId);
if (objContext != null && objContext.trim().length() > 0) { if (objContext != null && objContext.trim().length() > 0) {
......
...@@ -115,7 +115,10 @@ public class AssociateAct extends ActionHandlerEJB implements AssociateActLocal, ...@@ -115,7 +115,10 @@ public class AssociateAct extends ActionHandlerEJB implements AssociateActLocal,
//Changes and Commented By Bhushan on 09-06-2016 :END //Changes and Commented By Bhushan on 09-06-2016 :END
connDriver = null; connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
connCP = connDriver.getConnectDB("DriverCP"); //Changes and Commented By Bhushan on 09-06-2016 :START
//connCP = connDriver.getConnectDB("DriverCP");
connCP = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END
connDriver = null; connDriver = null;
//stmt = conn.createStatement();//Removed Resultset Sensitive Type // To be Updated in Server - Jiten - //stmt = conn.createStatement();//Removed Resultset Sensitive Type // To be Updated in Server - Jiten -
//detCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt"); //detCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt");
......
...@@ -371,7 +371,10 @@ public class CustStockAct extends ActionHandlerEJB implements CustStockActLocal, ...@@ -371,7 +371,10 @@ public class CustStockAct extends ActionHandlerEJB implements CustStockActLocal,
try try
{ {
System.out.println("actionTransform called........."); System.out.println("actionTransform called.........");
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
connDriver = null; connDriver = null;
userId = new ibase.utility.E12GenericUtility().getValueFromXTRA_PARAMS(xtraParams, "loginCode"); userId = new ibase.utility.E12GenericUtility().getValueFromXTRA_PARAMS(xtraParams, "loginCode");
......
...@@ -1678,7 +1678,10 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal, ...@@ -1678,7 +1678,10 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//detailCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt"); //detailCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt");
if(detailCnt.equals("0")) if(detailCnt.equals("0"))
{ {
conn1 = connDriver.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn1 = connDriver.getConnectDB("DriverITM");
conn1 = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
stmt = conn1.createStatement(); stmt = conn1.createStatement();
stmt1 = conn1.createStatement(); stmt1 = conn1.createStatement();
stmt2 = conn1.createStatement(); stmt2 = conn1.createStatement();
......
...@@ -528,7 +528,10 @@ public class DistRcpExShConf extends ActionHandlerEJB implements DistRcpExShConf ...@@ -528,7 +528,10 @@ public class DistRcpExShConf extends ActionHandlerEJB implements DistRcpExShConf
try try
{ {
mConnDriver = new ConnDriver(); mConnDriver = new ConnDriver();
mConnection = mConnDriver.getConnectDB("DriverITM"); //Changes and Commented By Bhushan on 13-06-2016 :START
//mConnection = mConnDriver.getConnectDB("DriverITM");
mConnection = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
String tranID = generateTranID(mConnection, xtraParams); String tranID = generateTranID(mConnection, xtraParams);
......
...@@ -57,7 +57,10 @@ public class InvAmdPostConfSMSComp extends ValidatorEJB implements InvAmdPostCon ...@@ -57,7 +57,10 @@ public class InvAmdPostConfSMSComp extends ValidatorEJB implements InvAmdPostCon
dom =genericUtility.parseString(xmlString); dom =genericUtility.parseString(xmlString);
mConnDriver = new ConnDriver(); mConnDriver = new ConnDriver();
mConnection = (Connection) mConnDriver.getConnectDB("Driver"); //Changes and Commented By Bhushan on 13-06-2016 :START
//mConnection = (Connection) mConnDriver.getConnectDB("Driver");
mConnection = (Connection)getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
mConnDriver = null; mConnDriver = null;
String invoiceID = genericUtility.getColumnValue("invoice_id",dom,"1"); String invoiceID = genericUtility.getColumnValue("invoice_id",dom,"1");
String status = genericUtility.getColumnValue("status",dom,"1"); String status = genericUtility.getColumnValue("status",dom,"1");
......
...@@ -56,7 +56,10 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R ...@@ -56,7 +56,10 @@ public class RecalFrtAct extends ActionHandlerEJB implements RecalFrtActLocal, R
try try
{ {
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" ); String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" );
System.out.println(" userID ["+userID+"]"); System.out.println(" userID ["+userID+"]");
......
...@@ -65,7 +65,10 @@ public class ShipmentLocConf extends ActionHandlerEJB implements ShipmentLocConf ...@@ -65,7 +65,10 @@ public class ShipmentLocConf extends ActionHandlerEJB implements ShipmentLocConf
try try
{ {
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParam, "LoginCode" ); String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParam, "LoginCode" );
System.out.println(" forced flag ["+forcedFlag+"]"); System.out.println(" forced flag ["+forcedFlag+"]");
...@@ -686,7 +689,10 @@ public class ShipmentLocConf extends ActionHandlerEJB implements ShipmentLocConf ...@@ -686,7 +689,10 @@ public class ShipmentLocConf extends ActionHandlerEJB implements ShipmentLocConf
xmlBuff = new StringBuffer(); xmlBuff = new StringBuffer();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf1 = new SimpleDateFormat(genericUtility.getDBDateFormat());
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
......
...@@ -74,7 +74,10 @@ public class ShipmentLocDefaultAct extends ActionHandlerEJB implements ShipmentL ...@@ -74,7 +74,10 @@ public class ShipmentLocDefaultAct extends ActionHandlerEJB implements ShipmentL
try try
{ {
conn = connDriver.getConnectDB( "DriverITM" ); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" ); String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" );
System.out.println(" userID ["+userID+"]"); System.out.println(" userID ["+userID+"]");
......
...@@ -38,7 +38,10 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -38,7 +38,10 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
try try
{ {
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("Driver"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("Driver");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
retString = confirm( tranID, xtraParams, forcedFlag,conn); retString = confirm( tranID, xtraParams, forcedFlag,conn);
...@@ -68,7 +71,10 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo ...@@ -68,7 +71,10 @@ public class StockDeAllocConf extends ActionHandlerEJB implements StockDeAllocCo
if (conn==null) if (conn==null)
{ {
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("Driver"); //Changes and Commented By Bhushan on 13-06-2016 :START
//conn = connDriver.getConnectDB("Driver");
conn = getConnection();
//Changes and Commented By Bhushan on 13-06-2016 :END
conn.setAutoCommit(false); conn.setAutoCommit(false);
isLocal=true; isLocal=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