Commit df00226d authored by gahmad's avatar gahmad

Req ID : AD01SUN008 : changes made in shift patern , new component for...

Req ID : AD01SUN008 : changes made in shift patern , new component  for itemchange and validation of shift pattern process and migrated the shift process component from ejb2 to ejb3
Req ID : AD01SUN009: changes made in separation close confirmation logic and separation close itemchange and validation components


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91350 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fd5bde8c
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.*; import ibase.webitm.ejb.ActionHandlerLocal;
//import javax.ejb.EJBObject; import ibase.webitm.utility.ITMException;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.Local; // added for ejb3
@Local // added for ejb3 @javax.ejb.Local
public interface SepCloseConfLocal extends ActionHandlerLocal //,EJBObject public interface SepCloseConfLocal extends ActionHandlerLocal
{ {
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException,ITMException; public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
} }
\ No newline at end of file
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.*; import ibase.webitm.utility.ITMException;
//import javax.ejb.EJBObject; import ibase.webitm.ejb.ActionHandlerRemote;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3 @javax.ejb.Remote
public interface SepCloseConfRemote extends ActionHandlerRemote //,EJBObject public interface SepCloseConfRemote extends ActionHandlerRemote
{ {
public String confirm(String tranID, String xtraParams, String forcedFlag) throws RemoteException,ITMException; public String confirm(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException;
} }
\ No newline at end of file
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*; import org.w3c.dom.*;
import javax.xml.parsers.*; import javax.xml.parsers.*;
import javax.ejb.*; import javax.ejb.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Local; // added for ejb3 //Changed by Pawan 10/5/2010[AD01SUN009] to migrate from ejb2 to ejb3
@javax.ejb.Local
@Local // added for ejb3 public interface SepCloseLocal extends ValidatorLocal
public interface SepCloseLocal extends ValidatorLocal //,EJBObject
{ {
public String wfValData() throws RemoteException,ITMException; public String wfValData() throws RemoteException,ITMException;
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import java.rmi.RemoteException; import java.rmi.RemoteException;
//import javax.ejb.EJBObject;
import org.w3c.dom.*; import org.w3c.dom.*;
import javax.xml.parsers.*; import javax.xml.parsers.*;
import javax.ejb.*; import javax.ejb.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
@Remote // added for ejb3 //Changed by Pawan 10/5/2010[AD01SUN009] to migrate from ejb2 to ejb3
public interface SepCloseRemote extends ValidatorRemote //,EJBObject //public interface SepClose extends Validator,EJBObject
@javax.ejb.Remote
public interface SepCloseRemote extends ValidatorRemote
{ {
public String wfValData() throws RemoteException,ITMException; public String wfValData() throws RemoteException,ITMException;
......
...@@ -11,6 +11,8 @@ import ibase.webitm.ejb.*; ...@@ -11,6 +11,8 @@ import ibase.webitm.ejb.*;
import ibase.webitm.utility.GenericUtility; import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*; import ibase.system.config.*;
import java.sql.*; import java.sql.*;
// Changed by Dhiraj 07/10/10 [AD01SUN008]
import java.text.SimpleDateFormat;
import javax.ejb.Stateless; // added for ejb3 import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3 @Stateless // added for ejb3
...@@ -18,30 +20,7 @@ import javax.ejb.Stateless; // added for ejb3 ...@@ -18,30 +20,7 @@ import javax.ejb.Stateless; // added for ejb3
public class ShiftPattern extends ValidatorEJB implements ShiftPatternLocal,ShiftPatternRemote //SessionBean public class ShiftPattern extends ValidatorEJB implements ShiftPatternLocal,ShiftPatternRemote //SessionBean
{ {
String returnValue12 = ""; String returnValue12 = "";
/*
public void ejbCreate() throws RemoteException, CreateException
{
try
{
System.out.println("ValidatorEJB ejbCreate called.........");
}
catch (Exception e)
{
System.out.println("Exception :ValidatorEJB :ejbCreate :==>"+e);
throw new CreateException();
}
}
public void ejbRemove()
{
}
public void ejbActivate()
{
}
public void ejbPassivate()
{
}
*/
public String wfValData() throws RemoteException,ITMException public String wfValData() throws RemoteException,ITMException
{ {
return ""; return "";
...@@ -129,13 +108,21 @@ public String wfValData() throws RemoteException,ITMException ...@@ -129,13 +108,21 @@ public String wfValData() throws RemoteException,ITMException
try try
{ {
conn = connDriver.getConnectDB("DriverITM"); conn = connDriver.getConnectDB("DriverITM");
AppConnectParm appConnect = new AppConnectParm(); // Changed by Dhiraj 07/10/10 [AD01SUN008]. start
/*AppConnectParm appConnect = new AppConnectParm();
Properties p = appConnect.getProperty(); Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p); InitialContext ctx = new InitialContext(p);
itmDBAccessLocal = (ITMDBAccessLocal)ctx.lookup("ITMDBAccess"); itmDBAccessLocal = (ITMDBAccessLocal)ctx.lookup("ITMDBAccess");
*/
// Changed by Dhiraj 07/10/10 [AD01SUN008]. end
//itmDBAccess = itmDBAccessHome.create(); //itmDBAccess = itmDBAccessHome.create();
connectionObject = itmDBAccessLocal.getConnection(); //added for ejb3
stmt = connectionObject.createStatement(); // Changed by Dhiraj 07/10/10 [AD01SUN008] start
/*connectionObject = itmDBAccessLocal.getConnection(); //added for ejb3
stmt = connectionObject.createStatement();
*/
stmt = conn.createStatement();
// Changed by Dhiraj 07/10/10 [AD01SUN008] end
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode");
if(objContext != null && objContext.trim().length()>0) if(objContext != null && objContext.trim().length()>0)
{ {
...@@ -153,7 +140,9 @@ public String wfValData() throws RemoteException,ITMException ...@@ -153,7 +140,9 @@ public String wfValData() throws RemoteException,ITMException
{ {
if(childNode.getFirstChild() == null) if(childNode.getFirstChild() == null)
{ {
errString = itmDBAccess.getErrorString("shift_pattern","VTSPCANT",userId,errString,connectionObject); //Changed by Dhiraj 07/10/10 [AD01SUN008]
//errString = itmDBAccess.getErrorString("shift_pattern","VTSPCANT",userId,errString,connectionObject);
errString = getErrorString("shift_pattern","VTSPCANT",userId);
} }
else else
{ {
...@@ -183,7 +172,11 @@ public String wfValData() throws RemoteException,ITMException ...@@ -183,7 +172,11 @@ public String wfValData() throws RemoteException,ITMException
System.out.println("count :---------------------"+count); System.out.println("count :---------------------"+count);
if (count == 0) if (count == 0)
{ {
errString = itmDBAccess.getErrorString("shift_pattern","VTWSNOTM",userId,errString,connectionObject); //Changed by Dhiraj 07/10/10 [AD01SUN008]
//errString = itmDBAccess.getErrorString("shift_pattern","VTWSNOTM",userId,errString,connectionObject);
errString = getErrorString("shift_pattern","VTWSNOTM",userId);
} }
} }
...@@ -251,6 +244,11 @@ public String wfValData() throws RemoteException,ITMException ...@@ -251,6 +244,11 @@ public String wfValData() throws RemoteException,ITMException
Connection conn = null; Connection conn = null;
Statement stmt = null; Statement stmt = null;
ResultSet rs = null; ResultSet rs = null;
// Changed by Dhiraj 07/10/10 [AD01SUN008].start
String loginSite = "";
String siteCodeDescr = "";
// Changed by Dhiraj 07/10/10 [AD01SUN008] .end
StringBuffer valueXmlString = new StringBuffer(); StringBuffer valueXmlString = new StringBuffer();
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -268,9 +266,19 @@ public String wfValData() throws RemoteException,ITMException ...@@ -268,9 +266,19 @@ public String wfValData() throws RemoteException,ITMException
System.out.println("xtraParamsitemchange:---------------"+xtraParams); System.out.println("xtraParamsitemchange:---------------"+xtraParams);
site_code = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"site_code"); site_code = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"site_code");
valueXmlString.append("<site_code>").append(site_code).append("</site_code>\r\n"); valueXmlString.append("<site_code>").append(site_code).append("</site_code>\r\n");
java.sql.Date toDay =new java.sql.Date(System.currentTimeMillis());
valueXmlString.append("<start_date>").append(toDay).append("</start_date>\r\n"); //Changed by Dhiraj 07/10/10 [AD01SUN008]. start
//java.sql.Date toDay =new java.sql.Date(System.currentTimeMillis());
java.util.Date toDay = new java.util.Date();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
String dbDtStr = sdf.format(toDay);
// Changed by Dhiraj 07/10/10 [AD01SUN008]. end
//valueXmlString.append("<start_date>").append(toDay).append("</start_date>\r\n");
valueXmlString.append("<start_date>").append(dbDtStr).append("</start_date>\r\n");
System.out.println("Start_date:-------------------------"+toDay); System.out.println("Start_date:-------------------------"+toDay);
} }
else if (currentColumn.trim().equals("shift_pattern")) else if (currentColumn.trim().equals("shift_pattern"))
...@@ -298,6 +306,8 @@ public String wfValData() throws RemoteException,ITMException ...@@ -298,6 +306,8 @@ public String wfValData() throws RemoteException,ITMException
} }
valueXmlString.append("</Detail1>\r\n"); valueXmlString.append("</Detail1>\r\n");
valueXmlString.append("</Root>\r\n"); valueXmlString.append("</Root>\r\n");
} }
......
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.util.*;
import java.util.Date;
import java.text.*;
import java.sql.*;
import org.w3c.dom.*;
import javax.ejb.*;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.*;
import ibase.webitm.ejb.*;
import javax.ejb.Stateless;
import javax.naming.InitialContext;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
@Stateless
public class ShiftPatternProcIC extends ValidatorEJB implements ShiftPatternProcICLocal,ShiftPatternProcICRemote
{
public String itemChanged() throws RemoteException,ITMException
{
return "";
}
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String valueXmlString = "";
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
if(xmlString != null && xmlString.trim().length()!=0)
{
dom = genericUtility.parseString(xmlString);
}
if (xmlString1 != null && xmlString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmlString2);
}
valueXmlString = itemChanged(dom,dom1,dom2,objContext,currentColumn,editFlag,xtraParams);
}
catch(Exception e)
{
throw new ITMException(e);
}
return valueXmlString.toString();
}
public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{
String columnValue = "";
String sql = "";
Connection conn = null;
Statement stmt = null;
ResultSet rs = null;
String loginSite = "";
String empFname = "";
String empLname = "";
String deptDescr = "";
String siteDescr = "";
String shiftDescr = "";
StringBuffer valueXmlString = new StringBuffer();
ConnDriver connDriver = new ConnDriver();
GenericUtility genericUtility = GenericUtility.getInstance();
try
{
conn = connDriver.getConnectDB("DriverITM");
columnValue = genericUtility.getColumnValue(currentColumn,dom);
System.out.println("columnValue :"+columnValue);
valueXmlString.append("<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header><editFlag>");
valueXmlString.append(editFlag).append("</editFlag></Header>\r\n");
valueXmlString.append("<Detail1>\r\n");
if (currentColumn.trim().equals("itm_default"))
{
String shiftPattern = getColumnValue("shift_pattern",dom);
String shiftTo = getColumnValue("shift_to",dom);
valueXmlString.append("<shift_pattern protect = '1'> ").append(shiftPattern == null ? "":shiftPattern).append("</shift_pattern>\r\n");
valueXmlString.append("<shift_to protect = '1'> ").append(shiftTo == null ? "" : shiftTo).append("</shift_to>\r\n");
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSite");
valueXmlString.append("<site_code__fr>").append(loginSite).append("</site_code__fr>\r\n");
valueXmlString.append("<site_code__to>").append(loginSite).append("</site_code__to>\r\n");
sql = "SELECT DESCR FROM SITE WHERE SITE_CODE = '" + loginSite + "'";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
siteDescr = rs.getString("DESCR");
}
rs.close();
stmt.close();
valueXmlString.append("<site_code_fr_descr>").append(siteDescr).append("</site_code_fr_descr>\r\n");
valueXmlString.append("<site_code_to_descr>").append(siteDescr).append("</site_code_to_descr>\r\n");
valueXmlString.append("<dept_code__fr>").append("00").append("</dept_code__fr>\r\n");
valueXmlString.append("<dept_code__to>").append("ZZ").append("</dept_code__to>\r\n");
valueXmlString.append("<emp_code__fr>").append("00").append("</emp_code__fr>\r\n");
valueXmlString.append("<emp_code__to>").append("ZZ").append("</emp_code__to>");
}
else if (currentColumn.trim().equals("emp_code__fr"))
{
String empCode = getColumnValue("emp_code__fr", dom);
sql = "SELECT EMP_FNAME, EMP_LNAME FROM EMPLOYEE WHERE EMP_CODE = '"+empCode+"' ";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
empFname = rs.getString("EMP_FNAME");
empLname = rs.getString("EMP_LNAME");
}
rs.close();
stmt.close();
valueXmlString.append("<emp_code__fr>").append(empCode == null ? "" : empCode).append("</emp_code__fr>\r\n");
valueXmlString.append("<fr_emp_name>").append(empFname == null ? "" : empFname).append(" ").append(empLname == null ? "" : empLname).append("</fr_emp_name>\r\n");
}
else if (currentColumn.trim().equals("emp_code__to"))
{
String empCode = getColumnValue("emp_code__to", dom);
sql = "SELECT EMP_FNAME, EMP_LNAME FROM EMPLOYEE WHERE EMP_CODE = '"+empCode+"' ";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
empFname = rs.getString("EMP_FNAME");
empLname = rs.getString("EMP_LNAME");
}
rs.close();
stmt.close();
valueXmlString.append("<emp_code__to>").append(empCode == null ? "" : empCode).append("</emp_code__to>\r\n");
valueXmlString.append("<to_emp_name>").append(empFname == null ? "" : empFname).append(" ").append(empLname == null ? "" : empLname).append("</to_emp_name>\r\n");
}
else if (currentColumn.trim().equals("dept_code__fr"))
{
String deptCode = getColumnValue("dept_code__fr", dom);
sql = "select descr from department where dept_code = '"+deptCode+"' ";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
deptDescr = rs.getString("descr");
}
rs.close();
stmt.close();
valueXmlString.append("<dept_code__fr>").append(deptCode == null ? "" : deptCode).append("</dept_code__fr>\r\n");
valueXmlString.append("<dept_code_fr_descr>").append(deptDescr == null ? "" : deptDescr).append("</dept_code_fr_descr>\r\n");
}
else if (currentColumn.trim().equals("dept_code__to"))
{
String deptCode = getColumnValue("dept_code__to", dom);
sql = "select descr from department where dept_code = '"+deptCode+"' ";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
deptDescr = rs.getString("descr");
}
rs.close();
stmt.close();
valueXmlString.append("<dept_code__to>").append(deptCode == null ? "" : deptCode).append("</dept_code__to>\r\n");
valueXmlString.append("<dept_code_to_descr>").append(deptDescr == null ? "" : deptDescr).append("</dept_code_to_descr>\r\n");
}
else if (currentColumn.trim().equals("site_code__fr"))
{
String siteCode = getColumnValue("site_code__fr", dom);
sql = "select descr from site where site_code = '"+siteCode+"' ";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
siteDescr = rs.getString("descr");
}
rs.close();
stmt.close();
valueXmlString.append("<site_code__fr>").append(siteCode == null ? "" : siteCode).append("</site_code__fr>\r\n");
valueXmlString.append("<site_code_fr_descr>").append(siteDescr == null ? "" : siteDescr).append("</site_code_fr_descr>\r\n");
}
else if (currentColumn.trim().equals("site_code__to"))
{
String siteCode = getColumnValue("site_code__to", dom);
sql = "select descr from site where site_code = '"+siteCode+"' ";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
siteDescr = rs.getString("descr");
}
rs.close();
stmt.close();
valueXmlString.append("<site_code__to>").append(siteCode == null ? "" : siteCode).append("</site_code__to>\r\n");
valueXmlString.append("<site_code_to_descr>").append(siteDescr == null ? "" : siteDescr).append("</site_code_to_descr>\r\n");
}
else if(currentColumn.trim().equals("shift_to"))
{
String shift = getColumnValue("shift_to", dom);
sql = "select a.descr from workshft a where a.shift = '" + shift + "' and a.day_no = (select min(b.day_no) from workshft b where b.shift = a.shift)";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
while (rs.next())
{
shiftDescr = rs.getString("descr");
}
rs.close();
stmt.close();
valueXmlString.append("<shift_to>").append(shift == null ? "" : shift).append("</shift_to>\r\n");
valueXmlString.append("<shift_to_descr>").append(shiftDescr == null ? "" : shiftDescr).append("</shift_to_descr>\r\n");
}
valueXmlString.append("</Detail1>\r\n");
valueXmlString.append("</Root>\r\n");
}
catch(Exception e)
{
throw new ITMException(e);
}
finally
{
try
{
System.out.println("Closing Connection.......");
if (rs != null)
{
rs.close();
rs = null;
}
if (stmt != null)
{
stmt.close();
stmt = null;
}
if (conn != null)
{
conn.close();
conn = null;
}
}
catch(Exception se)
{
throw new ITMException(se);
}
}
return valueXmlString.toString();
}
}
package ibase.webitm.ejb.adm;import java.rmi.RemoteException;import org.w3c.dom.*;import ibase.webitm.utility.ITMException;import ibase.webitm.ejb.*;import javax.ejb.Local; @Local public interface ShiftPatternProcICLocal extends ValidatorLocal { public String itemChanged() throws RemoteException,ITMException; public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;}
\ No newline at end of file
package ibase.webitm.ejb.adm;import java.rmi.RemoteException;import org.w3c.dom.*;import ibase.webitm.utility.ITMException;import ibase.webitm.ejb.*;import javax.ejb.Remote; @Remote public interface ShiftPatternProcICRemote extends ValidatorRemote { public String itemChanged() throws RemoteException,ITMException; public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;}
\ No newline at end of file
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;import java.rmi.RemoteException;//import javax.ejb.EJBObject; import org.w3c.dom.*; import ibase.webitm.utility.ITMException; import ibase.webitm.ejb.*; import javax.ejb.Remote; // added for ejb3 @Remote // added for ejb3 public interface ShiftPatternRemote extends ValidatorRemote //,EJBObject { public String itemChanged() throws RemoteException,ITMException; public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; }
import java.rmi.RemoteException;//import javax.ejb.EJBObject; import org.w3c.dom.*; import ibase.webitm.utility.ITMException; import ibase.webitm.ejb.*; import javax.ejb.Remote; // added for ejb3 @Remote // added for ejb3 public interface ShiftPatternRemote extends ValidatorRemote //,EJBObject { public String itemChanged() throws RemoteException,ITMException; public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; public String itemChanged(Document dom, Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException; } \ No newline at end of file
\ No newline at end of file
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import java.rmi.RemoteException; import java.rmi.RemoteException;
//Changed by Dhiraj req ID: AD01SUN008 [05/10/10]
//import javax.ejb.EJBObject; //import javax.ejb.EJBObject;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Local; // added for ejb3 //Changed by Dhiraj req ID: AD01SUN008 [05/10/10].start
import javax.ejb.Local;
@Local // added for ejb3 @Local
//public interface ShiftProcess extends ibase.webitm.ejb.Process,EJBObject
public interface ShiftProcessLocal extends ibase.webitm.ejb.ProcessLocal //,EJBObject public interface ShiftProcessLocal extends ibase.webitm.ejb.ProcessLocal
//Changed by Dhiraj req ID: AD01SUN008 [05/10/10].end
{ {
public String process() throws RemoteException,ITMException; public String process() throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import java.rmi.RemoteException; import java.rmi.RemoteException;
//Changed by Dhiraj req ID: AD01SUN008 [05/10/10]
//import javax.ejb.EJBObject; //import javax.ejb.EJBObject;
import org.w3c.dom.*; import org.w3c.dom.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3 //Changed by Dhiraj req ID: AD01SUN008 [05/10/10].start
import javax.ejb.Remote;
@Remote // added for ejb3 @Remote
public interface ShiftProcessRemote extends ibase.webitm.ejb.ProcessRemote //,EJBObject //public interface ShiftProcess extends ibase.webitm.ejb.Process,EJBObject
public interface ShiftProcessRemote extends ibase.webitm.ejb.ProcessRemote
//Changed by Dhiraj req ID: AD01SUN008 [05/10/10].end
{ {
public String process() throws RemoteException,ITMException; public String process() throws RemoteException,ITMException;
public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException; public String process(String xmlString, String xmlString2, String windowName, String xtraParams) throws RemoteException,ITMException;
......
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