Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 75180 invoked from network); 12 Mar 2006 17:56:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Mar 2006 17:56:59 -0000 Received: (qmail 16029 invoked by uid 500); 12 Mar 2006 17:56:58 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 15871 invoked by uid 500); 12 Mar 2006 17:56:58 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 15859 invoked by uid 99); 12 Mar 2006 17:56:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Mar 2006 09:56:58 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of aok123@bellsouth.net designates 205.152.59.68 as permitted sender) Received: from [205.152.59.68] (HELO imf20aec.mail.bellsouth.net) (205.152.59.68) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Mar 2006 09:56:57 -0800 Received: from ibm62aec.bellsouth.net ([65.80.200.112]) by imf20aec.mail.bellsouth.net with ESMTP id <20060312175636.ZQWM1944.imf20aec.mail.bellsouth.net@ibm62aec.bellsouth.net> for ; Sun, 12 Mar 2006 12:56:36 -0500 Received: from [172.16.1.7] (really [65.80.200.112]) by ibm62aec.bellsouth.net with ESMTP id <20060312175636.QNSG23740.ibm62aec.bellsouth.net@[172.16.1.7]> for ; Sun, 12 Mar 2006 12:56:36 -0500 Message-ID: <441460D3.4030909@bellsouth.net> Date: Sun, 12 Mar 2006 12:56:35 -0500 From: Alex Karasulu User-Agent: Thunderbird 1.5 (X11/20060210) MIME-Version: 1.0 To: felix-dev@incubator.apache.org Subject: Re: Got a problem running felix in production mode References: <4413267D.4000302@bellsouth.net> <441327A4.50707@bellsouth.net> <441336F8.3090701@ungoverned.org> <200603112325.36375.marrs@xs4all.nl> <44144CA1.3000203@ungoverned.org> In-Reply-To: <44144CA1.3000203@ungoverned.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Richard S. Hall wrote: > Marcel Offermans wrote: >> We are using a custom "main" class that bootstraps the framework and >> installs the basic bundles (everything up to and including the >> "management agent"). This leaves the system in a state similar to >> what an initial provisioning implementation would do. >> >> We wrap this "main" class in a runnable jar that sets up the >> classpath to include the Felix jars. > > The standard Main is overall pretty simplistic, but it does allow you > to specify the location of the config.properties file using a system > property, so it is always possible to have a production > config.properties file too that you select via a system property when > you run in production mode. I'll try to get to it but I think what needs to be done here is ... (1) For UNIX installations to write a custom init script instead of the default one that is generated by the installer plugin and have that set two things: - the configuration file used should be set to production.properties - the profile to be used must be set to "production" so the default (debug mode based) profile is not used with the shell bundles in it (2) For Windows installations we need to modify the custom inno.iss file to set the system properties for the shell service so that ... - the configuration file used should be set to production.properties - the profile to be used must be set to "production" so the default (debug mode based) profile is not used with the shell bundles in it So as you can see we need some environment property to be set for both cases to do the same things. Now is it possible that the profile can be chosen inside the config.properties? If so then I do not need a second property to select the profile. Alex