Commit 26039f6d authored by steurwadkar's avatar steurwadkar

Changes made to generate wave task from distribution order

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182845 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 70f5c94e
...@@ -118,12 +118,24 @@ public class ConsolidatToDoc { ...@@ -118,12 +118,24 @@ public class ConsolidatToDoc {
System.out.println("*********inside try block** CONSOLIDATE TO DOCK *****"); System.out.println("*********inside try block** CONSOLIDATE TO DOCK *****");
System.out.println("ptcn ======>["+ptcn+"]"); System.out.println("ptcn ======>["+ptcn+"]");
//Added by Santosh on 30/03/2018 to get connection from transDB[Start]
AppConnectParm appConnect = new AppConnectParm();
Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
String loginCode = checkNull(genericUtility.getValueFromXTRA_PARAMS( xtraParams, "loginCode" ));
DBAccessLocal dbAccessEJBLocal = (DBAccessLocal)ctx.lookup("ibase/DBAccessEJB/local");
UserInfoBean userInfo = dbAccessEJBLocal.createUserInfo(loginCode);
//Added by Santosh on 30/03/2018 to get connection from transDB[End]
if(conn == null) if(conn == null)
{ {
isLocalConnection = true; isLocalConnection = true;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM"); //Added by Santosh on 30/03/2018 to get connection from transDB
//conn = connDriver.getConnectDB("DriverITM");
conn = connDriver.getConnectDB(userInfo.getTransDB());
} }
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
...@@ -1310,7 +1322,9 @@ public class ConsolidatToDoc { ...@@ -1310,7 +1322,9 @@ public class ConsolidatToDoc {
//Changed by wasim on 05-04-2017 for using same connection so commented [START] //Changed by wasim on 05-04-2017 for using same connection so commented [START]
connDriver = new ConnDriver(); connDriver = new ConnDriver();
tempConn = connDriver.getConnectDB("DriverITM"); //Added by Santosh on 30/03/2018 to get connection from transDB
//tempConn = connDriver.getConnectDB("DriverITM");
tempConn = connDriver.getConnectDB(userInfo.getTransDB());
connDriver = null; connDriver = null;
//Changed by wasim on 05-04-2017 for using same connection so commented [END] //Changed by wasim on 05-04-2017 for using same connection so commented [END]
......
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