Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 9968 invoked from network); 4 Mar 2009 16:10:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 16:10:21 -0000 Received: (qmail 9386 invoked by uid 500); 4 Mar 2009 16:10:20 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 9340 invoked by uid 500); 4 Mar 2009 16:10:19 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 9330 invoked by uid 99); 4 Mar 2009 16:10:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 08:10:19 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 16:10:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 21AC7234C4C2 for ; Wed, 4 Mar 2009 08:09:57 -0800 (PST) Message-ID: <1396519990.1236182997136.JavaMail.jira@brutus> Date: Wed, 4 Mar 2009 08:09:57 -0800 (PST) From: "Jack Cai (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-4549) JMS resource jndi entries are not removed after uninstalling the JMS connect adapter In-Reply-To: <463937598.1235293982137.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678767#action_12678767 ] Jack Cai commented on GERONIMO-4549: ------------------------------------ So I spend more time to understand the code. Guess I now know the reason why Context A is chosen that way (to quickly remove a chain of subcontext which only contains the object to be removed). But I still don't get why removeNotEmptyContext is set to false in org.apache.xbean.naming.context.WritableContext$NestedWritableContext.removeBinding(). I propose 2 fixes as - 1. Update org.apache.xbean.naming.context.WritableContext$NestedWritableContext.removeBinding(), new code below (change false to removeNotEmptyContext) {code} protected boolean removeBinding(String name, boolean removeNotEmptyContext) throws NamingException { if (WritableContext.this.removeBinding(bindingsRef, name, removeNotEmptyContext)) { return true; } return super.removeBinding(name, removeNotEmptyContext); } {/code} 2. Update the org.apache.xbean.naming.context.AbstractContext.removeDeepBinding() to remove the chain of subcontexts one by one starting from the leaf subcontexts, so that each subcontext IS empty when being removed and can thus be removed successfully even if removeNotEmptyContext is set to false. Any comments? I'll submit the patch tomorrow. But I'd like to get some advice beforehands. > JMS resource jndi entries are not removed after uninstalling the JMS connect adapter > ------------------------------------------------------------------------------------ > > Key: GERONIMO-4549 > URL: https://issues.apache.org/jira/browse/GERONIMO-4549 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: ActiveMQ > Affects Versions: 2.1.4 > Reporter: Forrest Xia > Priority: Blocker > Fix For: 2.1.4, 2.2 > > > Steps to reproduce this problem: > 1. login admin console > 2. Create a ActiveMQ resource connector with the wizard > 3. Deploy it and check it is in running state > 4. Click J2EE connector to uninstall it > 5. Check JNDI viewer, you will see the JNDI entry still there, even you've uninstalled it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.