Hello,

I am trying to use a knopflerfish bundle with felix + configuration admin +
file install. I have seen that configuration parameters in the knopflerfish
bundle are describes with an xml file (which describes the parameter type).
The knopflerfish bundle assumes that parameters are casted to the described
type but with felix + configuration admin  + file install I only have String
parameters. Moreover, in the config admin compedium specification I have
seen something about config parameters metatypes. So, is the knopflerfish
implementation proprietary and if not, is this mechanism supported by felix
and its bundles ?

Thank you

An example of the knopflerfish xml file:
<?xml version="1.0" encoding="UTF-8"?>

<MetaData xmlns="http://www.osgi.org/xmlns/metatype/v1.0.0";>

  <OCD id="1.1.1.1" name="OCD for factory.HttpServer">
    <AD name="port.http"
type="Integer"
id="port.http"
default="8080" />
    <AD name="host"
type="String"
id="host" />
    <AD name="session.timeout.default"
type="Integer"
id="session.timeout.default"
default="1200 "/>
    <AD name="connection.max"
type="Integer"
id="connection.max"
default="50" />
    <AD name="connection.timeout"
type="Integer"
id="connection.timeout"
default="30" />
    <AD name="response.buffer.size.default"
type="Integer"
id="response.buffer.size.default"
default="16384" />
    <AD name="service.ranking"
type="Integer"
id="service.ranking"
default="1" />
    <AD name="dns.lookup"
type="Boolean"
id="dns.lookup"
default="false" />
  </OCD>

  <Designate
     pid="org.knopflerfish.bundle.http.factory.HttpServer"
     factoryPid="org.knopflerfish.bundle.http.factory.HttpServer"
     bundle="ignored" >
    <Object ocdref="1.1.1.1" >
    </Object>
  </Designate>

</MetaData>

Reply via email to