Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The advantage would be that in the bundle defining the bus all the common rules could be applied. So the other bundles do not have to repeat that step.

Alternatively name the servlet in the endpoint

If we give each servlet / DestinationRegistry a name then we could refer to this name in the endpoint. So the user could choose, which servlet to wire to. The DestinationRegistry could be exported in OSGi as a Service with the name in a property.In the endpoint we could e.g. use the following uri syntax: servlet:servletname/path. The endpoint would then be published to the DestinationRegistry with the given name.

TODO: How to store the DestinationRegistries in non OSGi environments.