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; ...@@ -7,7 +7,6 @@ package ibase.webitm.ejb.dis;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.util.*; import java.util.*;
import java.util.Date;
import java.sql.*; import java.sql.*;
import java.io.*; import java.io.*;
//import webitm4.*; //import webitm4.*;
...@@ -856,7 +855,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat ...@@ -856,7 +855,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
StringBuffer xmlBuff = null; StringBuffer xmlBuff = null;
Timestamp sysDate = null; Timestamp sysDate = null;
Calendar currentDate = Calendar.getInstance(); Calendar currentDate = Calendar.getInstance();
String userId = "";//Added By Pavan R 27/DEC/17
try try
{ {
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"); chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
...@@ -1360,10 +1359,13 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat ...@@ -1360,10 +1359,13 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
System.out.println("Getting site code value"); System.out.println("Getting site code value");
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"); siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("==site code =="+siteCode); 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("Printing xmlString"+xmlString);
System.out.println("conn::: "+conn); System.out.println("conn::: "+conn);
retString = saveData(siteCode,xmlString,conn); retString = saveData(siteCode,xmlString,userId,conn);
System.out.println("@@@@@2: retString11111111111:"+retString); System.out.println("@@@@@2: retString11111111111:"+retString);
if (retString.indexOf("Success") > -1) if (retString.indexOf("Success") > -1)
{ {
...@@ -1899,7 +1901,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat ...@@ -1899,7 +1901,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
} }
return input; 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..........."); System.out.println("saving data...........");
InitialContext ctx = null; InitialContext ctx = null;
...@@ -1912,7 +1914,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat ...@@ -1912,7 +1914,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocat
masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local"); masterStateful = (MasterStatefulLocal)ctx.lookup("ibase/MasterStatefulEJB/local");
System.out.println("-----------masterStateful------- " + masterStateful); System.out.println("-----------masterStateful------- " + masterStateful);
String [] authencate = new String[2]; String [] authencate = new String[2];
authencate[0] = ""; authencate[0] = userId;
authencate[1] = ""; authencate[1] = "";
System.out.println("xmlString to masterstateful [" + xmlString + "]"); System.out.println("xmlString to masterstateful [" + xmlString + "]");
retString = masterStateful.processRequest(authencate, siteCode, true, xmlString,true,conn); 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