Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 73726 invoked from network); 9 Dec 2004 05:14:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 05:14:54 -0000 Received: (qmail 57453 invoked by uid 500); 9 Dec 2004 05:14:36 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 57398 invoked by uid 500); 9 Dec 2004 05:14:36 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 57361 invoked by uid 99); 9 Dec 2004 05:14:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 210-54-239-27.adsl.xtra.co.nz (HELO arjan) (210.54.239.27) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 21:14:32 -0800 Received: from localhost ([127.0.0.1] helo=ARJAN) by arjan with smtp (Exim 4.43) id I8FVSR-00029O-45 for users@cocoon.apache.org; Thu, 09 Dec 2004 18:12:27 +1300 From: "Adam Ratcliffe" To: Subject: RE: Cocoon-centric approach to customer configuration Date: Thu, 9 Dec 2004 18:12:26 +1300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Jorg I had a look at the authentication application feature http://cocoon.apache.org/2.1/developing/webapps/authentication.html#Applicat ion+Management as this provides a way of getting customer-specific configuration data into the user's authentication context. Presumably I could then use the CocoonComponentManager to lookup the SessionManager and get full access to the configuration from any of my business objects or within the Flow layer. I generally like this approach but I think I have an issue for customer sites that don't require a user to authenticate themself as the configuration is only loaded after a successful authentication. Maybe for these applications I could programatically create the authentication context and load the configuration into it via the AuthenticationManager component which provides a createApplicationContext() method. This does seem like a bit of a subversion of the authentication framework, maybe side effects? An alternative I'm considering is Commons Configuration. This provides a generic interface for configuration data from a variety of data sources, file, JDBC etc. A configuration object could be created for each customer configuration and put into a Store, then retrieved and set in the session when a user requests a URL belonging to that customer. As you pointed out this is probably getting more into the area of application architecture than cocoon usage specific. If you do have the time I'd be interested in your view. Cheers Adam -----Original Message----- From: Jorg Heymans [mailto:jh@domek.be] Sent: Tuesday, 7 December 2004 6:11 a.m. To: users@cocoon.apache.org Subject: Re: Cocoon-centric approach to customer configuration Adam Ratcliffe wrote: > Hi there, > > I'm working on a Cocoon application that will be a hosted solution. I > need to maintain independent configuration data for each customer > related to such things as datasources, feature set etc. Because of the > need to keep customer specific configuration separate from general > system configuration I don't want to use cocoon.xconf, furthermore I'd > like to be able to setup new customers without requiring a server restart. This is very much an application architecture question rather than cocoon specific IMO. Adding new customer configurations at runtime is something you should handle yourself in the application, there might be cocoon components that help you do this but there is no clear-cut plugin or component for this. HTH, if not rephrase your question to be a bit more specific? Regards Jorg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org