eclipse-osgi-technology / jakartarest-osgi

Glassfish Jersey based implementation of the OSGi Jakarta RESTful Web Services Whiteboard specification
https://projects.eclipse.org/projects/technology.osgi-technology
Eclipse Public License 2.0
3 stars 5 forks source link

Whiteboard configuration properties are not propagated to the services #46

Closed tcalmant closed 2 months ago

tcalmant commented 3 months ago

When configuring the JakartarsServletWhiteboardRuntimeComponent configuration, properties like osgi.jakartars.name or custom properties are not propagated to the service instance.

For example, with this configuration:

{
  "org.apache.felix.http~sensinact.rest":  {
    "org.osgi.service.http.port":8081,
    "org.apache.felix.http.runtime.init.id":"sensinact"
  },
  "JakartarsServletWhiteboardRuntimeComponent~sensinact": {
    "osgi.http.whiteboard.target":"(id=sensinact)",
    "osgi.jakartars.name":"sensiNact.rest"
  }
}

the JakartarsServiceRuntime holds those properties:

   osgi.jakartars.endpoint = http://192.168.1.39:8081/
   service.bundleid = 43
   service.changecount = 4
   service.description = REST whiteboard for HttpServiceRuntime 118
   service.id = 145
   service.scope = singleton

I think we should see the osgi.jakartars.name property to be able to select it with osgi.jakartars.whiteboard.target