Commit 7e193cd6 authored by ssalve's avatar ssalve

Sarita : Done changes to add transDB in xtraparams for processRequest parameters on 26DEC2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177245 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3bc8c766
......@@ -812,6 +812,8 @@ public class SorderWizardPosEJB extends ValidatorEJB implements SorderWizardPosE
String userType = "";
String chgTerm = "";
//Added by sarita on 26DEC2017
String transDB = "";
try
{
E12GenericUtility genericUtility = new E12GenericUtility();
......@@ -823,7 +825,8 @@ public class SorderWizardPosEJB extends ValidatorEJB implements SorderWizardPosE
userType = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userType");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm");
//added by sarita on 26DEC2017 to insert transDB parameter
transDB = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"transDB");
System.out.println("xtraParams is @@@@@ " + xtraParams);
userInfoStr.append("<UserInfo>");
......@@ -835,6 +838,8 @@ public class SorderWizardPosEJB extends ValidatorEJB implements SorderWizardPosE
userInfoStr.append("<userType>").append("<![CDATA["+userType+"]]>").append("</userType>\r\n");
userInfoStr.append("<remoteHost>").append("<![CDATA["+chgTerm+"]]>").append("</remoteHost>\r\n");
//added by sarita on 26DEC2017 to insert transDB parameter
userInfoStr.append("<transDB>").append("<![CDATA["+transDB+"]]>").append("</transDB>\r\n");
userInfoStr.append("</UserInfo>");
}
catch ( Exception e )
......@@ -857,7 +862,8 @@ public class SorderWizardPosEJB extends ValidatorEJB implements SorderWizardPosE
String sql = "";
PreparedStatement pstmt = null ;
ResultSet rs = null;
//Added by sarita on 26DEC2017
String transDB = "";
try
{
......@@ -873,6 +879,8 @@ public class SorderWizardPosEJB extends ValidatorEJB implements SorderWizardPosE
userType = rs.getString("USER_TYPE");
userLang = rs.getString("USER_LANG");
userCountry= rs.getString("USER_COUNTRY");
//added by sarita on 26DEC2017 to insert transDB parameter
transDB= rs.getString("TRANS_DB");
}
remotehost = InetAddress.getLocalHost().getHostAddress();
......@@ -890,6 +898,8 @@ public class SorderWizardPosEJB extends ValidatorEJB implements SorderWizardPosE
xtraParamsBuff.append(XTRA_PARAMS_SEPARATOR).append("charEnc=" + CommonConstants.ENCODING);
xtraParamsBuff.append(XTRA_PARAMS_SEPARATOR).append("termId="+remotehost);
//added by sarita on 26DEC2017 to insert transDB parameter
xtraParamsBuff.append(XTRA_PARAMS_SEPARATOR).append("transDB="+transDB);
String chgTerm = remotehost;
if( chgTerm != null && chgTerm.length() > 15 )
......
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