tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgallim...@apache.org
Subject [2/4] tomee git commit: TOMEE-2151 remove app containers when undeploying the application
Date Mon, 04 Dec 2017 15:05:03 GMT
TOMEE-2151 remove app containers when undeploying the application


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/11830d21
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/11830d21
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/11830d21

Branch: refs/heads/master
Commit: 11830d21a18222aa33b280d011bfb9b2df45e773
Parents: 7f1aced
Author: Jonathan Gallimore <jon@jrg.me.uk>
Authored: Mon Dec 4 14:22:43 2017 +0000
Committer: Jonathan Gallimore <jon@jrg.me.uk>
Committed: Mon Dec 4 14:52:41 2017 +0000

----------------------------------------------------------------------
 .../java/org/apache/openejb/assembler/classic/Assembler.java     | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/11830d21/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
index d96ba3b..0ac819d 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
@@ -2562,6 +2562,10 @@ public class Assembler extends AssemblerTool implements org.apache.openejb.spi.A
             for (final String id : appInfo.containerIds) {
                 removeContainer(id);
             }
+            for (final ContainerInfo containerInfo : appInfo.containers) {
+                removeContainer(containerInfo.id);
+            }
+
             containerSystem.removeAppContext(appInfo.appId);
 
             if (!appInfo.properties.containsKey("tomee.destroying")) { // destroy tomee classloader
after resources cleanup


Mime
View raw message