You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Carl Hall <ca...@hallwaytech.com> on 2010/07/13 15:57:13 UTC

Setting Component Attributes Through Config File

I've just been turned on to the wonder that is component configuration
through FileInstall[1].  Using this, is it possible to set such attributes
as "immediate" or "enabled" on the component?

1 http://felix.apache.org/site/apache-felix-file-install.html

Re: Setting Component Attributes Through Config File

Posted by Justin Edelson <ju...@gmail.com>.

On Jul 20, 2010, at 5:05 PM, Carl Hall <ca...@hallwaytech.com> wrote:

> Hi Felix,
> 
> Thanks for the response.  Do you know if it is possible to submit
> multiple values for a particular property via the cfg file like can be
> done with the admin console?

See http://markmail.org/thread/uxcnkk5dsfjrgibo
> 
> Thanks,
> Carl
> 
> 
> On Sun, Jul 18, 2010 at 1:51 PM, Felix Meschberger <fm...@gmail.com> wrote:
>> Hi Carl,
>> 
>> On 13.07.2010 15:57, Carl Hall wrote:
>>> I've just been turned on to the wonder that is component configuration
>>> through FileInstall[1].  Using this, is it possible to set such attributes
>>> as "immediate" or "enabled" on the component?
>> 
>> Assuming you are talking about Declarative Services Components ...
>> 
>> No, configuration only applies to properties defined with either the
>> <prooperty> or <properties> element of the declaration, with the
>> exception of the "target" attribute of services references, which may
>> also be configured using the special .target property name suffix.
>> 
>> This is because confiugaration provided through File Install is applied
>> to the Configuration Admin Service.
>> 
>> Hope this helps.
>> 
>> Regards
>> Felix
>> 
>>> 
>>> 1 http://felix.apache.org/site/apache-felix-file-install.html
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Setting Component Attributes Through Config File

Posted by Carl Hall <ca...@hallwaytech.com>.
Hi Felix,

Thanks for the response.  Do you know if it is possible to submit
multiple values for a particular property via the cfg file like can be
done with the admin console?

Thanks,
Carl


On Sun, Jul 18, 2010 at 1:51 PM, Felix Meschberger <fm...@gmail.com> wrote:
> Hi Carl,
>
> On 13.07.2010 15:57, Carl Hall wrote:
>> I've just been turned on to the wonder that is component configuration
>> through FileInstall[1].  Using this, is it possible to set such attributes
>> as "immediate" or "enabled" on the component?
>
> Assuming you are talking about Declarative Services Components ...
>
> No, configuration only applies to properties defined with either the
> <prooperty> or <properties> element of the declaration, with the
> exception of the "target" attribute of services references, which may
> also be configured using the special .target property name suffix.
>
> This is because confiugaration provided through File Install is applied
> to the Configuration Admin Service.
>
> Hope this helps.
>
> Regards
> Felix
>
>>
>> 1 http://felix.apache.org/site/apache-felix-file-install.html
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Setting Component Attributes Through Config File

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Carl,

On 13.07.2010 15:57, Carl Hall wrote:
> I've just been turned on to the wonder that is component configuration
> through FileInstall[1].  Using this, is it possible to set such attributes
> as "immediate" or "enabled" on the component?

Assuming you are talking about Declarative Services Components ...

No, configuration only applies to properties defined with either the
<prooperty> or <properties> element of the declaration, with the
exception of the "target" attribute of services references, which may
also be configured using the special .target property name suffix.

This is because confiugaration provided through File Install is applied
to the Configuration Admin Service.

Hope this helps.

Regards
Felix

> 
> 1 http://felix.apache.org/site/apache-felix-file-install.html
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Setting Component Attributes Through Config File

Posted by Carl Hall <ca...@hallwaytech.com>.
Also, I'm wondering if I can submit multiple values for a configuration
property.  I can't seem to get it right in the cfg file.

On Tue, Jul 13, 2010 at 9:57 AM, Carl Hall <ca...@hallwaytech.com> wrote:

> I've just been turned on to the wonder that is component configuration
> through FileInstall[1].  Using this, is it possible to set such attributes
> as "immediate" or "enabled" on the component?
>
> 1 http://felix.apache.org/site/apache-felix-file-install.html
>