How to use servlet with OSGi

前端 未结 6 1341
悲&欢浪女
悲&欢浪女 2021-01-11 19:31

I want to create and deploy a web service to OSGi container. For example, publish the service to the address:

http://localhost:8080/testservice. 

6条回答
  •  孤城傲影
    2021-01-11 20:06

    To answer your question, since Karaf (FUSE ESB) uses Pax Web as it's default Web-Container take a look at Pax Web for more details how it works and probably best for you at the more than 100 integration tests of Pax Web to give you an Idea on how to use it. There are also samples available to show you how to use either std. Http-Service, through Whiteboard-Extender or as WAR/WAB.

提交回复
热议问题