Skip to content

Commit b8d7d3a

Browse files
committed
Fix: Properly unload failed app
Before it failed to trigger some events that usually happen during undeployment. This fixes the error handler to properly clean everything up and trigger corresponding events.
1 parent c29382c commit b8d7d3a

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)