How to support virtual hosts with OSGI HttpService

吃可爱长大的小学妹 提交于 2019-12-02 18:19:13

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/8342560/how-to-support-virtual-hosts-with-osgi-httpservice

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!