Commit c8c84ddf authored by ngadkari's avatar ngadkari

calling of getConnection and action handler method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198557 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5807e7ed
...@@ -58,7 +58,7 @@ import org.w3c.dom.Node; ...@@ -58,7 +58,7 @@ import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
@SuppressWarnings( { "unused" }) @SuppressWarnings( { "unused" })
public class BankPiFprc implements Schedule // extends ProcessEJB implements public class BankPiFprc extends ActionHandlerEJB implements Schedule // extends ProcessEJB implements
// BankPiFprcLocal,BankPiFprcRemote{ // BankPiFprcLocal,BankPiFprcRemote{
{ {
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
...@@ -124,7 +124,19 @@ public class BankPiFprc implements Schedule // extends ProcessEJB implements ...@@ -124,7 +124,19 @@ public class BankPiFprc implements Schedule // extends ProcessEJB implements
} }
return ""; return "";
} }
//actionHandler added by nandkumar gadkari on 18/03/19
public String actionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException, ITMException {
String xmlString = "", xmlString2 = "", winName = "w_bankpif";
try {
process(xmlString, xmlString2, winName, xtraParams);
} catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
/* /*
* public String process() throws RemoteException,ITMException { return ""; * public String process() throws RemoteException,ITMException { return "";
* } * }
...@@ -214,8 +226,9 @@ public class BankPiFprc implements Schedule // extends ProcessEJB implements ...@@ -214,8 +226,9 @@ public class BankPiFprc implements Schedule // extends ProcessEJB implements
int detField1=0; int detField1=0;
String retString=""; String retString="";
try { try {
conn = connDriver.getConnectDB("DriverITM"); /*conn = connDriver.getConnectDB("DriverITM");
connDriver = null; connDriver = null;*/ //commented and added getConnection by nandkumar gadkari on 18/03/19
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
filePath = new File(CommonConstants.JBOSSHOME + File.separator+"server"+File.separator+"default" + File.separator+"deploy"+File.separator+"updatexls");//String to file filePath = new File(CommonConstants.JBOSSHOME + File.separator+"server"+File.separator+"default" + File.separator+"deploy"+File.separator+"updatexls");//String to file
...@@ -431,7 +444,7 @@ public class BankPiFprc implements Schedule // extends ProcessEJB implements ...@@ -431,7 +444,7 @@ public class BankPiFprc implements Schedule // extends ProcessEJB implements
return errString; return errString;
} }
private static Document parseString(String xsdString)throws Exception public Document parseString(String xsdString)
{ {
Document dom = null; Document dom = null;
try try
......
...@@ -56,7 +56,7 @@ import org.w3c.dom.Node; ...@@ -56,7 +56,7 @@ import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
@SuppressWarnings({"unused"}) @SuppressWarnings({"unused"})
public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements public class BankPifRtgsprc extends ActionHandlerEJB implements Schedule // extends ProcessEJB implements
// BankPiFprcLocal,BankPiFprcRemote{ // BankPiFprcLocal,BankPiFprcRemote{
{ {
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
...@@ -123,7 +123,19 @@ public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements ...@@ -123,7 +123,19 @@ public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements
} }
return ""; return "";
} }
//actionHandler added by nandkumar gadkari on 18/03/19
public String actionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException, ITMException {
String xmlString = "", xmlString2 = "", winName = "w_bankpif";
try {
processRtgs(xmlString, xmlString2, winName, xtraParams);
} catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
return "";
}
/* /*
* public String process() throws RemoteException,ITMException { return ""; * public String process() throws RemoteException,ITMException { return "";
* } * }
...@@ -213,8 +225,9 @@ public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements ...@@ -213,8 +225,9 @@ public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements
int parentNodeListLength = 0; int parentNodeListLength = 0;
int detField1 = 0; int detField1 = 0;
try { try {
conn = connDriver.getConnectDB("DriverITM"); /*conn = connDriver.getConnectDB("DriverITM");
connDriver = null; connDriver = null;*///commented and added getConnection by nandkumar gadkari on 18/03/19
conn = getConnection();
conn.setAutoCommit(false); conn.setAutoCommit(false);
csvFile = new File( CommonConstants.JBOSSHOME + File.separator+"server"+File.separator+"default"+ File.separator+"deploy"+File.separator+"Rtgsupdatexls"); csvFile = new File( CommonConstants.JBOSSHOME + File.separator+"server"+File.separator+"default"+ File.separator+"deploy"+File.separator+"Rtgsupdatexls");
System.out.println(":::::::file Path" + csvFile); System.out.println(":::::::file Path" + csvFile);
...@@ -400,7 +413,7 @@ public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements ...@@ -400,7 +413,7 @@ public class BankPifRtgsprc implements Schedule // extends ProcessEJB implements
return errString; return errString;
} }
private static Document parseString(String xsdString) throws Exception { public Document parseString(String xsdString) {
Document dom = null; Document dom = null;
try { try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
......
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