Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 52634 invoked from network); 5 Oct 2010 20:06:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 20:06:57 -0000 Received: (qmail 56630 invoked by uid 500); 5 Oct 2010 20:06:57 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 56578 invoked by uid 500); 5 Oct 2010 20:06:57 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 56571 invoked by uid 99); 5 Oct 2010 20:06:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:06:56 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 20:06:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o95K6XFt023988 for ; Tue, 5 Oct 2010 20:06:33 GMT Message-ID: <12008891.554641286309193262.JavaMail.jira@thor> Date: Tue, 5 Oct 2010 16:06:33 -0400 (EDT) From: "Jakob Korherr (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (EXTCDI-71) ClassDeactivator configuration via JNDI MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org ClassDeactivator configuration via JNDI --------------------------------------- Key: EXTCDI-71 URL: https://issues.apache.org/jira/browse/EXTCDI-71 Project: MyFaces CODI Issue Type: Improvement Components: Core Affects Versions: 1.0.0-SNAPSHOT Reporter: Jakob Korherr Assignee: Jakob Korherr Currently it is only possible to set the ClassDeactivator via a system property, but this can be a problem in some scenarios (webapps, test cases, ...). Thus there should be another way to define the ClassDeactivator. The problem is that this information needs to be available very early in the application lifecycle, even before CDI initializes, thus it could be solved via a web.xml init parameter. However this introduces another problem: how to get the reference to the ServletContext to get the init parameter in the first place. This means we must use some other type of configuration, a custom xml config file or JNDI. Because of the fact that all major containers provide JNDI and it can also be set via web.xml (env-entry), we agreed to use JNDI for this. Example: myfaces-codi/ClassDeactivator java.lang.String org.apache.myfaces.extensions.cdi.test.webapp.scopemapping.deactivator.ScopeMappingDeactivator -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.