How to use servlet with OSGi

前端 未结 6 1395
悲&欢浪女
悲&欢浪女 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条回答
  •  猫巷女王i
    2021-01-11 20:01

    I guess you need a servlet bridge to access the service. Your service should be implemented as an OSGI bundle; servlet bridge has to have embedded OSGI framework. Follow this sample for details: http://vbashur.blogspot.kr/2014/07/osgi-servlet-bridge-sample.html

提交回复
热议问题