openejb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlaskow...@apache.org
Subject svn commit: r592354 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
Date Tue, 06 Nov 2007 10:12:20 GMT
Author: jlaskowski
Date: Tue Nov  6 02:12:20 2007
New Revision: 592354

URL: http://svn.apache.org/viewvc?rev=592354&view=rev
Log:
OPENEJB-715 Assembler.removeContainer() does not unbind container from JNDI

Submitted by: Jarek Gawor

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java?rev=592354&r1=592353&r2=592354&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
Tue Nov  6 02:12:20 2007
@@ -774,6 +774,11 @@
             ContainerInfo containerInfo = iterator.next();
             if (containerInfo.id.equals(containerId)) {
                 iterator.remove();
+                try {
+                    this.containerSystem.getJNDIContext().unbind("java:openejb/" + containerInfo.service
+ "/" + containerInfo.id);
+                } catch (Exception e) {
+                    logger.error("Failed to unbind " + containerId);
+                }
             }
         }
     }



Mime
View raw message