Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1BB62200B98 for ; Mon, 3 Oct 2016 19:38:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1A3ED160ADC; Mon, 3 Oct 2016 17:38:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 560C4160ACD for ; Mon, 3 Oct 2016 19:38:40 +0200 (CEST) Received: (qmail 70838 invoked by uid 500); 3 Oct 2016 17:38:39 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 70822 invoked by uid 99); 3 Oct 2016 17:38:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 17:38:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A5157C138C for ; Mon, 3 Oct 2016 17:38:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.279 X-Spam-Level: * X-Spam-Status: No, score=1.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=liferay-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id wvil3qpZ-7_D for ; Mon, 3 Oct 2016 17:38:36 +0000 (UTC) Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8D7B85F2ED for ; Mon, 3 Oct 2016 17:38:35 +0000 (UTC) Received: by mail-vk0-f52.google.com with SMTP id b186so31643664vkb.1 for ; Mon, 03 Oct 2016 10:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liferay-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fbZdpOih9VE3sy7VCBXrwAxwOheFeK1K7JRxD0Hh/lE=; b=VFexoe9ctQZI/73mezaFNEPH1WjTIVyP1/WrmdEfvRB2T7iXpO4dA8lSXxbaKgpoTq HUEj7UJc74cU8xXwEoJ6wv6NGECzkoAX3JIiwNDkqqo/itU+T/HXF6zLtNpg4QYHxqoK SQErStURT8hi0I6Megc9vEEtBeaqO7qDzrubux+q7m8tuNBQE19TupkF14eDvvaJDsM3 xoQli2ujPHVhZnAs2h3u+2a06I4kLampxttNiDPYEk2DEQZYkFpahj5X99gUUVu1WZa4 GQghrqh05IHL3KdldhcQVumQ8MIZg3WdQZR+qzpmc3DvSaslp/BxvRUKAnG5V2XKKF6E waDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fbZdpOih9VE3sy7VCBXrwAxwOheFeK1K7JRxD0Hh/lE=; b=GYp5kF26SRfYLOglcoepJepPZ5+qdSPrZTW8Mcm1kNz/Aj0ws42sBdSACGdZKeA+LM 7kfbb8SwLerfwfh6yxJC7MZ/pG413aHJ2M6rJr0Qj4Z7I3Jf8aQXUHKa5ODYSx2P2FXe aZhFraaa4a8MANBHDs6fU/7fTBbqKTwPMaRDwsaBUwiVj+Ty42il+NcZbfH4F5weiOQi NxEJrOncZEniXfNTmSEEmuDKQzMUnETffmeh2891q3um2H/4aFvnxoiSNbQKPDGLnE2T Iysqn5jWY3Q1Tsg9RcjiEt1TiaZjrW0ZmQc5VlqaV+kGRHfHjJNIZiLLKf5NvocOpTG4 Bz3A== X-Gm-Message-State: AA6/9Rn/CVzM0bnuFRpaDBKuBe/0XeZF3BkSY4eXAfbayv0Y6bt969L8xCJvzzJkcUDIYN81TkB9CfFII9+KvX0R X-Received: by 10.31.173.18 with SMTP id w18mr15147510vke.57.1475516314052; Mon, 03 Oct 2016 10:38:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.84.193 with HTTP; Mon, 3 Oct 2016 10:38:33 -0700 (PDT) In-Reply-To: References: From: Raymond Auge Date: Mon, 3 Oct 2016 13:38:33 -0400 Message-ID: Subject: Re: setting the objectclassdefinition from felix file install To: felix users Content-Type: multipart/alternative; boundary=001a1143f394c279ce053df969f0 archived-at: Mon, 03 Oct 2016 17:38:41 -0000 --001a1143f394c279ce053df969f0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Well, I'm not sure about that but because you've not named a pid in your component, it's not associating that with the configuration. Honestly, I'm not sure the pid in the OCD will get interpreted as being the pid of the configuration. My gut tells me it's not doing that. So you still need to name the pid in your component. Someone else may correct me of course. However, it should be simple to assert by adding the configurationPid property on the component and seeing if it does eventually bind. - Ray On Mon, Oct 3, 2016 at 1:27 PM, David Daniel wrote: > Thank you, I think I may be wrong somewhere else then. I have this in m= y > logs > > *DEBUG* > listConfigurations(filter=3D(felix.fileinstall.filename=3D > file:/media/david/abcd2f06-6ee4-4c5a-8c80-e4023ec8a52c/ > development/asae/asae-base/packaging/all/etc/com.marklogic.cfg)) > *DEBUG* Listing configurations matching > (felix.fileinstall.filename=3Dfile:/media/david/abcd2f06- > 6ee4-4c5a-8c80-e4023ec8a52c/development/asae/asae-base/ > packaging/all/etc/com.marklogic.cfg) > Creating configuration from com.marklogic.cfg > *DEBUG* getConfiguration(pid=3Dcom.marklogic, location=3Dnull) > > does setting the pid as I did above not do what I thought it would do. > > > On Mon, Oct 3, 2016 at 1:12 PM, Raymond Auge > wrote: > > > Make the configuration mandatory in the component! > > > > - Ray > > > > On Mon, Oct 3, 2016 at 1:08 PM, David Daniel < > david.daniel.1979@gmail.com> > > wrote: > > > > > I have an object class definition > > > > > > @ObjectClassDefinition(name =3D "Marklogic Configuration", > > > pid =3D "com.marklogic") > > > @interface MarklogicConfig { > > > String content_host() default "localhost"; > > > String content_username() default "admin"; > > > String content_pword() default "******"; > > > String content_dbname() default "****"; > > > } > > > > > > and a component > > > > > > @Component(service =3D {MarkLogicConnector.class}) > > > @Designate(ocd =3D MarklogicConfig.class) > > > public class MarkLogicConnector { > > > > > > I have the felix file install bundle installed and working. It seems > > like > > > it is loading com.marklogic.cfg correctly. Is there a way to make su= re > > > that the file is loaded before the configuration is passed into the > > > activate method. I seem to be getting the default values rather than > the > > > configured ones that came from fileinstall. > > > > > > > > > > > -- > > *Raymond Aug=C3=A9* > > (@rotty3000) > > Senior Software Architect *Liferay, Inc.* > > (@Liferay) > > Board Member & EEG Co-Chair, OSGi Alliance > > (@OSGiAlliance) > > > --=20 *Raymond Aug=C3=A9* (@rotty3000) Senior Software Architect *Liferay, Inc.* (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance= ) --001a1143f394c279ce053df969f0--