Skip to content

Commit 9d16cba

Browse files
authored
Merge pull request #25386 from OndroMih/ondromih-proper-unload-on-deploy-error
Fix: Properly unload failed app
2 parents 4bd69e3 + b8d7d3a commit 9d16cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/server/ApplicationLifecycle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ public void actOn(Logger logger) {
322322
try {
323323
ApplicationInfo appInfo = appRegistry.get(appName);
324324
if (appInfo != null) {
325-
// send the event to close necessary resources
326-
events.send(new Event<>(Deployment.APPLICATION_DISABLED, appInfo));
325+
// unload the remaining app resources and trigger all remaining events
326+
unload(appInfo, context);
327327
}
328328
} catch (Exception e) {
329329
// ignore

0 commit comments

Comments
 (0)