How to config the fileinstall bundle in configuration file?

View: New views
3 Messages — Rating Filter:   Alert me  

How to config the fileinstall bundle in configuration file?

by galaxy-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi  ,all
I read the subproject docs of file install and admin service and deploy the
folder and only found the default config of file install .
Here is how I have done it :
as stated
"If the felix.cm.dir property is not set, a directory named config is used
inside the persistent storage area of the Apache Felix Configuration Admin
Service bundle is used. This is the default behaviour."
So I created a folder config in the same dir with admin bundle
Then I created a file named org.apache.felix.fileinstall.cfg in it to store
the config proprieties of file install bundle .
Any one can help me to figure the problem out here ?
Thanks !

--
regards
Tian

Re: How to config the fileinstall bundle in configuration file?

by FilippoDiotalevi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jun 30, 2009 at 5:40 AM, galaxy<tian.galaxy@...> wrote:

> Hi  ,all
> I read the subproject docs of file install and admin service and deploy the
> folder and only found the default config of file install .
> Here is how I have done it :
> as stated
> "If the felix.cm.dir property is not set, a directory named config is used
> inside the persistent storage area of the Apache Felix Configuration Admin
> Service bundle is used. This is the default behaviour."
> So I created a folder config in the same dir with admin bundle
> Then I created a file named org.apache.felix.fileinstall.cfg in it to store
> the config proprieties of file install bundle .
> Any one can help me to figure the problem out here ?

Hi,
  I'm not sure I've understood what you're trying to do, so let me
point out a couple of things that may help you.

1) the configuration folder of the Configuration Admin Bundle is
managed by the bundle for its internal persistence. You can of course
configure the location of such folder, but you are not expected to
insert/change files inside; as far as I remember the compendium spec
doesn't even specify the format of the folder and of configuration
files, so what you are doing is going to be dependent on the osgi
implementation you are using (and may change with new versions)

2) the usual way of defining the watched directory of the FileInstall
bundle is adding a new entry
felix.fileinstall.dir=<watched folder>
to the conf/config.properties  Felix file

3) after you started the fileinstall bundle ( see 2) ) you can watch
additional directories following the instructions provided at
http://felix.apache.org/site/apache-felix-file-install.html , section
""Watching multiple directories with File Install"
Please note that .cfg files must be created in the *watched folder*
(the one specified in 2) ) and not the config folder (which is only
for internal persistence of the Configuration Admin service)

HTH,
--
Filippo Diotalevi

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


Re: How to config the fileinstall bundle in configuration file?

by galaxy-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Filippo* *I tried as you said  and got it right :)





2009/6/30 Filippo Diotalevi <filippo.diotalevi@...>

> On Tue, Jun 30, 2009 at 5:40 AM, galaxy<tian.galaxy@...> wrote:
> > Hi  ,all
> > I read the subproject docs of file install and admin service and deploy
> the
> > folder and only found the default config of file install .
> > Here is how I have done it :
> > as stated
> > "If the felix.cm.dir property is not set, a directory named config is
> used
> > inside the persistent storage area of the Apache Felix Configuration
> Admin
> > Service bundle is used. This is the default behaviour."
> > So I created a folder config in the same dir with admin bundle
> > Then I created a file named org.apache.felix.fileinstall.cfg in it to
> store
> > the config proprieties of file install bundle .
> > Any one can help me to figure the problem out here ?
>
> Hi,
>  I'm not sure I've understood what you're trying to do, so let me
> point out a couple of things that may help you.
>
> 1) the configuration folder of the Configuration Admin Bundle is
> managed by the bundle for its internal persistence. You can of course
> configure the location of such folder, but you are not expected to
> insert/change files inside; as far as I remember the compendium spec
> doesn't even specify the format of the folder and of configuration
> files, so what you are doing is going to be dependent on the osgi
> implementation you are using (and may change with new versions)
>
> 2) the usual way of defining the watched directory of the FileInstall
> bundle is adding a new entry
> felix.fileinstall.dir=<watched folder>
> to the conf/config.properties  Felix file
>
> 3) after you started the fileinstall bundle ( see 2) ) you can watch
> additional directories following the instructions provided at
> http://felix.apache.org/site/apache-felix-file-install.html , section
> ""Watching multiple directories with File Install"
> Please note that .cfg files must be created in the *watched folder*
> (the one specified in 2) ) and not the config folder (which is only
> for internal persistence of the Configuration Admin service)
>
> HTH,
> --
> Filippo Diotalevi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


--
regards
Tian