Commit 364c54b9 authored by ajadhav's avatar ajadhav

change in method signature for processRequest and remove other wherever it is called.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177256 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4ed32d09
......@@ -7,7 +7,6 @@ package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.util.*;
import java.util.Date;
import java.sql.*;
import java.io.*;
//import webitm4.*;
......@@ -856,7 +855,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
StringBuffer xmlBuff = null;
Timestamp sysDate = null;
Calendar currentDate = Calendar.getInstance();
String userId = "";//Added By Pavan R 27/DEC/17
try
{
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
......@@ -1360,10 +1359,13 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
System.out.println("Getting site code value");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("==site code =="+siteCode);
//added by Pavan R on 27/DEC/17 userId passwed to savData() and processRequest()
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
System.out.println("userId::["+userId+"]");
System.out.println("Printing xmlString"+xmlString);
System.out.println("conn::: "+conn);
retString = saveData(siteCode,xmlString,conn);
retString = saveData(siteCode,xmlString,userId,conn);
System.out.println("@@@@@2: retString11111111111:"+retString);
if (retString.indexOf("Success") > -1)
{
......@@ -1899,7 +1901,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
}
return input;
}
private String saveData(String siteCode,String xmlString, Connection conn) throws ITMException
private String saveData(String siteCode,String xmlString,String userId, Connection conn) throws ITMException
{
System.out.println("saving data...........");
InitialContext ctx = null;
......@@ -1912,7 +1914,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
System.out.println("-----------masterStateful------- " + masterStateful);
String [] authencate = new String[2];
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