Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
8044cd13
Commit
8044cd13
authored
Oct 25, 2024
by
Sonawane Amol Madhjuar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace ITMUploadFileEJB
parent
765eb302
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
Amol/Proteus_lib/ITMUploadFileEJB
Amol/Proteus_lib/ITMUploadFileEJB
+19
-7
No files found.
Amol/Proteus_lib/ITMUploadFileEJB
View file @
8044cd13
...
@@ -71,7 +71,6 @@ import ibase.utility.JSONtoXMLConverter;
...
@@ -71,7 +71,6 @@ import ibase.utility.JSONtoXMLConverter;
import
ibase
.
utility
.
MongoDBHandler
;
import
ibase
.
utility
.
MongoDBHandler
;
import
ibase
.
utility
.
UserInfoBean
;
import
ibase
.
utility
.
UserInfoBean
;
import
ibase
.
webitm
.
utility
.
ITMException
;
import
ibase
.
webitm
.
utility
.
ITMException
;
import
ibase
.
webitm
.
utility
.
RestAPIServiceUtility
;
import
ibase
.
webitm
.
utility
.
UploadTemplateMapping
;
import
ibase
.
webitm
.
utility
.
UploadTemplateMapping
;
import
ibase
.
webitm
.
utility
.
ValidateXMLInput
;
import
ibase
.
webitm
.
utility
.
ValidateXMLInput
;
import
ibase
.
webitm
.
utility
.
VisionEDIUtility
;
import
ibase
.
webitm
.
utility
.
VisionEDIUtility
;
...
@@ -2904,10 +2903,12 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
...
@@ -2904,10 +2903,12 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
Connection
conn
=
null
;
Connection
conn
=
null
;
PreparedStatement
pstmt
=
null
;
PreparedStatement
pstmt
=
null
;
ResultSet
rs
=
null
;
ResultSet
rs
=
null
;
//
Added
globally
to
as
per
suggestion
of
gagan
B
,
to
avoid
the
scope
issue
--
strt
String
batchID
=
""
;
String
batchID
=
""
;
int
tranSl
=
0
;
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
();
MasterApplyEJB
masterApplyEJB
=
new
MasterApplyEJB
();
...
@@ -2987,7 +2988,8 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
...
@@ -2987,7 +2988,8 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
String
threadKey
=
""
;
String
threadKey
=
""
;
//
String
dependency
=
""
;
//
String
dependency
=
""
;
String
addUser
=
""
;
String
addUser
=
""
;
String
loadStat
=
""
;
//
check
with
gagan
Amol
S
//
String
loadStat
=
""
;
String
tranSlStr
=
"0"
;
String
tranSlStr
=
"0"
;
//
int
tranSl
=
0
;
//
int
tranSl
=
0
;
for
(
Map
.
Entry
<
Integer
,
HashMap
<
String
,
String
>>
dataEntry
:
dataMap
.
entrySet
()
)
for
(
Map
.
Entry
<
Integer
,
HashMap
<
String
,
String
>>
dataEntry
:
dataMap
.
entrySet
()
)
...
@@ -3158,6 +3160,15 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
...
@@ -3158,6 +3160,15 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
{
{
try
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 )
if
(
rs
!= null )
{
{
rs
.
close
();
rs
.
close
();
...
@@ -3176,12 +3187,13 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
...
@@ -3176,12 +3187,13 @@ public class ITMUploadFileEJB extends BaseRegisteredEJB implements ITMUploadFile
}
}
catch
(
SQLException
e
)
catch
(
SQLException
e
)
{
{
//
Added
by
Amol
s
--
st
rt
//
Added
by
Amol
S
on
25
-
Oct
-
24
in
case
load
stat
is
stuck
at
I
--
Sta
rt
masterApplyEJB
.
updateBatchLoad
(
batchID
,
tranSl
,
"E"
,
dependency
,
null
,
getUserInfoBean
()
);
masterApplyEJB
.
updateBatchLoad
(
batchID
,
tranSl
,
"E"
,
dependency
,
null
,
getUserInfoBean
()
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
BaseLogger
.
log
(
"3"
,
null
,
null
,
"Exception3 in processEDIBatchload ["
+
E12GenericUtility
.
getStackTrace
(
e
)
+
"]"
);
"Exception3 in processEDIBatchload ["
+
E12GenericUtility
.
getStackTrace
(
e
)
+
"]"
);
throw
new
ITMException
(
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
/*
/*
*
*
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment