Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@locus.apache.org Received: (qmail 70625 invoked from network); 4 Dec 2008 20:27:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2008 20:27:35 -0000 Received: (qmail 29697 invoked by uid 500); 4 Dec 2008 20:27:47 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 29682 invoked by uid 500); 4 Dec 2008 20:27:47 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 29670 invoked by uid 99); 4 Dec 2008 20:27:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 12:27:47 -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; Thu, 04 Dec 2008 20:26:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 518D9234C2F5 for ; Thu, 4 Dec 2008 12:26:44 -0800 (PST) Message-ID: <1699758307.1228422404332.JavaMail.jira@brutus> Date: Thu, 4 Dec 2008 12:26:44 -0800 (PST) From: "Harry Metske (JIRA)" To: jspwiki-dev@incubator.apache.org Subject: [jira] Created: (JSPWIKI-452) JMX implementation does not support More than one JSPWiki instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org JMX implementation does not support More than one JSPWiki instance ------------------------------------------------------------------ Key: JSPWIKI-452 URL: https://issues.apache.org/jira/browse/JSPWIKI-452 Project: JSPWiki Issue Type: Bug Components: Core & storage Affects Versions: 3.0 Environment: JSPWiki 3.0 Reporter: Harry Metske Assignee: Harry Metske Priority: Minor The current JMX implementation does not handle multiple JSPWiki instances per JVM very well. This is true for both the new LoggerMBeans as for the other Admin type MBeans. The problem is that the ObjectName does not make the MBeans unique. Example names: JSPWiki:component=Core,name=Core bean JSPWiki:component=Loggers,name=com.ecyrd.jspwiki.WikiEngine So, depending on the order of startup, JSPWikiA or JSPWwikiB gets the MBean. This can be a bit dangerous, you think you reload the Search manager for A, but B gets it. But apparently we don't have that many users that use both multiple wiki's and the JMX. I think we need something that makes the MBean names unique. Question is what do we use : 1. property jspwiki.applicationName ? (still no guarantee) 2. context root of webapp (also no guarantee) 3. a random string appended, so this would make it like : JSPWiki-BGJSKIR:component=Core,name=Core bean, not very elegant 4. something perfect, any idea's ? The current AdminBeanManager also has a minor bug, saying it registers an MBean while it didn't, I'll fix that soon. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.