Commit a31951e3 authored by wansari's avatar wansari

S17BBAS004 updated source for E12GenericUtility and getConnection() for tag version

ibase3-webitm-gst-client2-0-0-1


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106285 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b5dfccf8
...@@ -2,7 +2,8 @@ package ibase.webitm.ejb.gstclient; ...@@ -2,7 +2,8 @@ package ibase.webitm.ejb.gstclient;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.utility.GenericUtility; import ibase.utility.E12GenericUtility;
//import ibase.utility.GenericUtility;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException; import java.rmi.RemoteException;
...@@ -17,8 +18,8 @@ import org.w3c.dom.*; ...@@ -17,8 +18,8 @@ import org.w3c.dom.*;
@javax.ejb.Stateless @javax.ejb.Stateless
public class GstDataIC extends ValidatorEJB implements GstDataICRemote, GstDataICLocal public class GstDataIC extends ValidatorEJB implements GstDataICRemote, GstDataICLocal
{ {
//E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
GenericUtility genericUtility = new GenericUtility(); //GenericUtility genericUtility = new GenericUtility();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
public String wfValData() throws RemoteException, ITMException public String wfValData() throws RemoteException, ITMException
...@@ -79,11 +80,11 @@ public class GstDataIC extends ValidatorEJB implements GstDataICRemote, GstDataI ...@@ -79,11 +80,11 @@ public class GstDataIC extends ValidatorEJB implements GstDataICRemote, GstDataI
try try
{ {
//connObject = getConnection(); connObject = getConnection();
ConnDriver connDriver = new ConnDriver(); /*ConnDriver connDriver = new ConnDriver();
connObject = connDriver.getConnectDB("DriverITM"); connObject = connDriver.getConnectDB("DriverITM");
connObject.setAutoCommit(false); connObject.setAutoCommit(false);
connDriver = null; connDriver = null;*/
String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" ); String userID = genericUtility.getValueFromXTRA_PARAMS( xtraParams, "LoginCode" );
...@@ -234,11 +235,11 @@ public class GstDataIC extends ValidatorEJB implements GstDataICRemote, GstDataI ...@@ -234,11 +235,11 @@ public class GstDataIC extends ValidatorEJB implements GstDataICRemote, GstDataI
try try
{ {
//conn = getConnection(); conn = getConnection();
ConnDriver connDriver = new ConnDriver(); /*ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
conn.setAutoCommit(false); conn.setAutoCommit(false);
connDriver = null; connDriver = null;*/
if(objContext != null && objContext.trim().length()>0) if(objContext != null && objContext.trim().length()>0)
{ {
......
...@@ -2,8 +2,8 @@ package ibase.webitm.ejb.gstclient; ...@@ -2,8 +2,8 @@ package ibase.webitm.ejb.gstclient;
import ibase.system.config.ConnDriver; import ibase.system.config.ConnDriver;
import ibase.utility.CommonConstants; import ibase.utility.CommonConstants;
//import ibase.utility.E12GenericUtility; import ibase.utility.E12GenericUtility;
import ibase.utility.GenericUtility; //import ibase.utility.GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ProcessEJB; import ibase.webitm.ejb.ProcessEJB;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
...@@ -29,8 +29,8 @@ import org.w3c.dom.Document; ...@@ -29,8 +29,8 @@ import org.w3c.dom.Document;
public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrcRemote public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrcRemote
{ {
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
//E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
GenericUtility genericUtility = new GenericUtility(); //GenericUtility genericUtility = new GenericUtility();
DistCommon distCommon = new DistCommon(); DistCommon distCommon = new DistCommon();
FinCommon finCommon = new FinCommon(); FinCommon finCommon = new FinCommon();
...@@ -111,11 +111,11 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc ...@@ -111,11 +111,11 @@ public class GstDataPrc extends ProcessEJB implements GstDataPrcLocal,GstDataPrc
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
System.out.println("START TIME FOR GST DATA POPULATION PROCESS IN SECONDS:::["+startTime/1000+"]"); System.out.println("START TIME FOR GST DATA POPULATION PROCESS IN SECONDS:::["+startTime/1000+"]");
//conn = getConnection(); connGST = getConnection();
connDriverGST = new ConnDriver(); /*connDriverGST = new ConnDriver();
connGST = connDriverGST.getConnectDB("DriverITM"); //will be changed as DriverITM as using stddbtest database for testing temporary connGST = connDriverGST.getConnectDB("DriverITM"); //will be changed as DriverITM as using stddbtest database for testing temporary
connGST.setAutoCommit(false); connGST.setAutoCommit(false);
connDriverGST = null; connDriverGST = null;*/
/*connDriverLocal = new ConnDriver(); /*connDriverLocal = new ConnDriver();
connLocal = connDriverLocal.getConnectDB("DriverITM"); connLocal = connDriverLocal.getConnectDB("DriverITM");
......
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