Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
da962d3a
Commit
da962d3a
authored
Feb 27, 2014
by
David Feliot
Browse files
JORAM-172, JORAM-177: notify callback if failure; removed flag 'updatedAgent'.
parent
4e12fae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/Engine.java
View file @
da962d3a
...
...
@@ -1152,6 +1152,11 @@ class Engine implements Runnable, AgentEngine, EngineMBean {
// In case of unrecoverable error during the reaction we have
// to rollback.
abort
(
exc
);
if
(
callbackNotification
!=
null
)
{
callbackNotification
.
failed
(
exc
);
}
// then continue.
continue
;
case
RP_EXIT:
...
...
@@ -1214,15 +1219,11 @@ class Engine implements Runnable, AgentEngine, EngineMBean {
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
DEBUG
,
getName
()
+
": commit()"
);
boolean
updatedAgent
;
if
(
agent
!=
null
)
{
updatedAgent
=
agent
.
isUpdated
();
agent
.
save
();
}
else
{
updatedAgent
=
false
;
}
if
(
noTxIfTransient
&&
msg
.
not
.
persistent
==
false
&&
!
updatedAgent
if
(
noTxIfTransient
&&
msg
.
not
.
persistent
==
false
&&
!
persistentPush
&&
!
AgentServer
.
getTransaction
().
containsOperations
())
{
// Suppress the processed notification from message queue ..
...
...
Write
Preview
Supports
Markdown
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