Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 23253 invoked from network); 29 Mar 2005 09:42:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2005 09:42:50 -0000 Received: (qmail 71563 invoked by uid 500); 29 Mar 2005 09:42:44 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 71518 invoked by uid 500); 29 Mar 2005 09:42:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 71501 invoked by uid 99); 29 Mar 2005 09:42:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from alpha.eurodyn.com (HELO alpha.eurodyn.com) (62.192.67.250) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 29 Mar 2005 01:42:42 -0800 Received: from parnitha.eurodyn.com (parnitha.eurodyn.com [10.251.0.3]) by alpha.eurodyn.com (8.12.9/8.12.9) with ESMTP id j2T9ga5U007710 for ; Tue, 29 Mar 2005 12:42:36 +0300 (EET DST) Received: by parnitha.eurodyn.com with ESMTP id MAA03784; Tue, 29 Mar 2005 12:42:36 +0300 (EET DST) Received: from [10.254.255.58] (account emmanouil.batsis [10.254.255.58] verified) by eurodyn.com (CommuniGate Pro SMTP 4.0.5) with ESMTP id 2403264 for commons-user@jakarta.apache.org; Tue, 29 Mar 2005 12:42:35 +0300 Message-ID: <42492399.7020902@eurodyn.com> Date: Tue, 29 Mar 2005 12:44:57 +0300 From: Emmanouil Batsis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: [Configuration] thread safety and performance in enterprize apps Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I was wondering if the list members can help me pin down best practices regarding use of Configuration in J2EE apps: * For read-only XML configurations, how does performance differ between: - sharing the same instance (via in the application context or JNDI) globally (which classes are better for that?) - use one instance per thread/request (threadlocal) - instantiate configuration objects "locally" * How does the above work for read-write configurations? I'd happily compose a document based on given input (even xdoc, as i need to learn that too ;-). Many thanks, Manos --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org