Commit a3a91b43 authored by ssalve's avatar ssalve

Sarita : Done changes to saveData to set userId parameter to set user[0] as...

Sarita : Done changes to saveData to set userId parameter to set user[0] as userID for processRequest on 26DEC2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177247 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d88b2c00
......@@ -1249,7 +1249,9 @@ public class NearExpirySchedule implements Schedule
xmlString = xmlBuff.toString();
if(lineCtr > 0)
{
retString = saveData(siteCode, xmlString, conn);
//replace and added by sarita on 26DEC2017 to add userId parameter
//retString = saveData(siteCode, xmlString, conn);
retString = saveData(siteCode, xmlString, conn,userId);
System.out.println("retString>>>>>>" + retString);
if (retString.indexOf("Success") > -1)
{
......@@ -2475,7 +2477,9 @@ private String checkNull(String input)
}
return tranId;
}//generateTranTd()
private String saveData(String siteCode,String xmlString, Connection conn) throws ITMException
//replace and added by sarita on 26DEC2017 to add userId parameter
//private String saveData(String siteCode,String xmlString, Connection conn) throws ITMException
private String saveData(String siteCode,String xmlString, Connection conn,String userId) throws ITMException
{
System.out.println("saving data...........");
InitialContext ctx = null;
......@@ -2487,7 +2491,9 @@ private String checkNull(String input)
ctx = new InitialContext(appConnect.getProperty());
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
String [] authencate = new String[2];
authencate[0] = "";
//replace and added by sarita on 26DEC2017 to keep first object of user array as userID
//authencate[0] = "";
authencate[0] = userId;
authencate[1] = "";
System.out.println("xmlString to masterstateful [" + xmlString + "]");
retString = masterStateful.processRequest(authencate, siteCode, true, xmlString,true,conn);
......
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