Commit 4ed32d09 authored by ajadhav's avatar ajadhav

chaange 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@177255 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a3a91b43
...@@ -6,7 +6,6 @@ package ibase.webitm.ejb.dis; ...@@ -6,7 +6,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.*;
...@@ -1929,6 +1928,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -1929,6 +1928,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
boolean isdetFlag = false; boolean isdetFlag = false;
String autoAlloc=""; //VALLABH KADAM 08/APR/15 String autoAlloc=""; //VALLABH KADAM 08/APR/15
// ADDED BY RITESH ON 15/07/14 END // ADDED BY RITESH ON 15/07/14 END
String userId = "";//Added By Pavan R 27/DEC/17
try try
{ {
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
...@@ -2807,10 +2807,14 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -2807,10 +2807,14 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"); siteCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
System.out.println("==site code =="+siteCode); System.out.println("==site code =="+siteCode);
System.out.println("Printing xmlString"+xmlString); System.out.println("Printing xmlString"+xmlString);
//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("Going to save data method++++++++++++++++++++++++"); System.out.println("Going to save data method++++++++++++++++++++++++");
if(xmlString != null && xmlString.trim().length()>0 && isdetFlag) if(xmlString != null && xmlString.trim().length()>0 && isdetFlag)
{ {
retString = saveData(siteCode,xmlString,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)
...@@ -3308,7 +3312,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -3308,7 +3312,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
} }
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;
...@@ -3321,7 +3325,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc ...@@ -3321,7 +3325,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
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