Replace ITMUploadFileEJB

parent 765eb302
......@@ -71,7 +71,6 @@ import ibase.utility.JSONtoXMLConverter;
import ibase.utility.MongoDBHandler;
import ibase.utility.UserInfoBean;
import ibase.webitm.utility.ITMException;
import ibase.webitm.utility.RestAPIServiceUtility;
import ibase.webitm.utility.UploadTemplateMapping;
import ibase.webitm.utility.ValidateXMLInput;
import ibase.webitm.utility.VisionEDIUtility;
......@@ -2904,10 +2903,12 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
//Added globally to as per suggestion of gagan B , to avoid the scope issue --strt
String batchID = "";
int tranSl = 0;
String dependency = ""; //added
String dependency = "";
String loadStat = "";
//Added globally to as per suggestion of gagan B , to avoid the scope issue --end
MasterApplyEJB masterApplyEJB = new MasterApplyEJB();
......@@ -2987,7 +2988,8 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
String threadKey = "";
//String dependency = "";
String addUser = "";
String loadStat = "";
//check with gagan Amol S
//String loadStat = "";
String tranSlStr = "0";
// int tranSl = 0;
for( Map.Entry<Integer, HashMap<String, String>> dataEntry : dataMap.entrySet() )
......@@ -3158,6 +3160,15 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
{
try
{
// Added by Amol S. on 25-Oct-24 to update batchload table in case of exception to avoid the stucking at LOAD_STAT at I. [strt]
if (loadStat.equalsIgnoreCase("I"))
{
BaseLogger.log("3", null, null, " Error Occured, Load stat is stuck at I for batchId : " + batchID +"");
//masterApplyEJB.updateBatchLoad( batchID, tranSl, "E", dependency, null, getUserInfoBean() );
masterApplyEJB.updateBatchLoad(batchID, tranSl, "Error Occured, Load stat is stuck at I", "E", "", conn, userInfo);
}
// Added by Amol S. on 25-Oct-24 to update batchload table in case of exception to avoid the stucking at LOAD_STAT at I. [end]
if ( rs != null )
{
rs.close();
......@@ -3176,12 +3187,13 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
}
catch (SQLException e)
{
//Added by Amol s --strt
//Added by Amol S on 25-Oct- 24 in case load stat is stuck at I --Start
masterApplyEJB.updateBatchLoad( batchID, tranSl, "E", dependency, null, getUserInfoBean() );
BaseLogger.log("3", null, null,
"Exception3 in processEDIBatchload [" + E12GenericUtility.getStackTrace(e) + "]");
throw new ITMException( e );
//Added by Amol s -end
//Added by Amol S on 25-Oct- 24 in case load stat is stuck at I --End
/*
*
*
......
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