tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: TOMEE-1507 removing apps when undeployed from set of apps in rest service
Date Thu, 05 Feb 2015 09:46:45 GMT
Repository: tomee
Updated Branches:
  refs/heads/develop 541e67fee -> bc5f6957c


TOMEE-1507 removing apps when undeployed from set of apps in rest service


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

Branch: refs/heads/develop
Commit: bc5f6957c6dfb0cf5e5a52b76fc9e4abd7bc0dad
Parents: 541e67f
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Thu Feb 5 10:46:39 2015 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Thu Feb 5 10:46:39 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/openejb/server/rest/RESTService.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/bc5f6957/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java
----------------------------------------------------------------------
diff --git a/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java
b/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java
index da6bcb8..7d6bc32 100644
--- a/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java
+++ b/server/openejb-rest/src/main/java/org/apache/openejb/server/rest/RESTService.java
@@ -920,7 +920,8 @@ public abstract class RESTService implements ServerService, SelfManaging
{
 
     public void undeploy(@Observes final AssemblerBeforeApplicationDestroyed event) {
         final AppInfo app = event.getApp();
-        if (deployedApplications.contains(app)) {
+        final boolean removed = deployedApplications.remove(app);
+        if (removed) {
             for (final WebAppInfo webApp : app.webApps) {
                 final List<DeployedService> toRemove = new ArrayList<>();
                 for (final DeployedService service : services) {


Mime
View raw message