All examples of using an osgi HttpService show how to register servlets, resources, etc — but all on the same service instance, and in the same namespace.
How can I run multiple instances of the HttpService in osgi (preferably embedded), each with its own namespace, based on HTTP requests received for a specific IP address or hostname?
There is a project on Google Code that purports to allow starting multiple
HTTP Service.I’ve not used it but it might solve at least part of your query.