Commit 705a8627 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@177236 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9fe01f58
...@@ -1289,6 +1289,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB ...@@ -1289,6 +1289,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB
String userType = ""; String userType = "";
String chgTerm = ""; String chgTerm = "";
//Added by sarita on 26DEC2017
String transDB = "";
try try
{ {
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
...@@ -1300,7 +1302,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB ...@@ -1300,7 +1302,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB
userType = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userType"); userType = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userType");
chgTerm = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"chgTerm"); 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); System.out.println("xtraParams is @@@@@ " + xtraParams);
userInfoStr.append("<UserInfo>"); userInfoStr.append("<UserInfo>");
...@@ -1312,6 +1315,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB ...@@ -1312,6 +1315,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB
userInfoStr.append("<userType>").append("<![CDATA["+userType+"]]>").append("</userType>\r\n"); userInfoStr.append("<userType>").append("<![CDATA["+userType+"]]>").append("</userType>\r\n");
userInfoStr.append("<remoteHost>").append("<![CDATA["+chgTerm+"]]>").append("</remoteHost>\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>"); userInfoStr.append("</UserInfo>");
} }
catch ( Exception e ) catch ( Exception e )
...@@ -1356,7 +1361,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB ...@@ -1356,7 +1361,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB
String profileId = ""; String profileId = "";
String userType = ""; String userType = "";
String userLang = ""; String userLang = "";
String userCountry = ""; String userCountry = "";
String transDB = "";
StringBuffer xtraParamsBuff = new StringBuffer(); StringBuffer xtraParamsBuff = new StringBuffer();
String sql = ""; String sql = "";
...@@ -1378,6 +1384,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB ...@@ -1378,6 +1384,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB
userType = rs.getString("USER_TYPE"); userType = rs.getString("USER_TYPE");
userLang = rs.getString("USER_LANG"); userLang = rs.getString("USER_LANG");
userCountry= rs.getString("USER_COUNTRY"); userCountry= rs.getString("USER_COUNTRY");
//added by sarita on 26DEC2017 to insert transDB parameter
transDB= rs.getString("TRANS_DB");
} }
if( pstmt != null ) if( pstmt != null )
{ {
...@@ -1405,6 +1413,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB ...@@ -1405,6 +1413,8 @@ public class DDPorderWizPosEJB extends ValidatorEJB implements DDPorderWizPosEJB
xtraParamsBuff.append(XTRA_PARAMS_SEPARATOR).append("charEnc=" + CommonConstants.ENCODING); xtraParamsBuff.append(XTRA_PARAMS_SEPARATOR).append("charEnc=" + CommonConstants.ENCODING);
xtraParamsBuff.append(XTRA_PARAMS_SEPARATOR).append("termId="+remotehost); 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; String chgTerm = remotehost;
if( chgTerm != null && chgTerm.length() > 15 ) 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