Commit d79cb3ce authored by vlagad's avatar vlagad

make the changes in CuststockGwtIc if failed to get connection object from getConnection method.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200611 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76c9ace6
...@@ -7,9 +7,11 @@ package ibase.webitm.ejb.dis; ...@@ -7,9 +7,11 @@ package ibase.webitm.ejb.dis;
* *
*/ */
import ibase.ejb.CommonDBAccessEJB;
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.UserInfoBean;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB; import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.sys.UtilMethods; import ibase.webitm.ejb.sys.UtilMethods;
...@@ -1816,7 +1818,20 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal, ...@@ -1816,7 +1818,20 @@ public class CustStockGWTIC extends ValidatorEJB implements CustStockGWTICLocal,
ConnDriver connDriver = null; ConnDriver connDriver = null;
connDriver = new ConnDriver(); connDriver = new ConnDriver();
//conn = connDriver.getConnectDB("DriverITM"); //conn = connDriver.getConnectDB("DriverITM");
//Added By Vikas L on 09/05/19[For Sun Migration point]Start
try
{
conn = getConnection(); conn = getConnection();
} catch(Exception e)
{
System.out.println("Inside Exception.......1828 failed to get connection from getConnection method!!");
String userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
CommonDBAccessEJB commonDBAccessEJB = new CommonDBAccessEJB();
UserInfoBean userInfoBean = commonDBAccessEJB.createUserInfo(userId);
conn = connDriver.getConnectDB(userInfoBean.getTransDB());
}
//Added By Vikas L on 09/05/19[For Sun Migration point]End
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
chgDate = sdf.format(new java.util.Date()); chgDate = sdf.format(new java.util.Date());
chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode")); chgUser = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
......
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