Java – Tomcat and OSGi

I wonder if I can embed an OSGi container like karaf in the Tomcat instance According to this so question and several others, it seems possible, but I can't seem to find any reliable details on how to do this or what traps / precautions to pay attention to

So:

>Can I embed an OSGi container in Tomcat so that I can easily deploy OSGi packages at any time without restarting Tomcat? > If #1 the answer above is "yes", what system service / port embeds OSGi into Tomcat? I asked, because I want to deploy OSGi in the Tomcat server hosted by Java PAAS without administrator privileges And I want to know - when I try to deploy an embedded OSGi container to tomcat, it will try to start listening to ports or start doing something to the local file system If this is the case, I may receive a security / permission error

Thank you in advance!

Solution

Yes In fact, if you download karaf and view < karaf_ Home > / demos / Web, you will find a demo project doing so

This will depend on what you install and how you configure it Here is a little old (but IMHO stil related) discusses the default ports and how to configure them

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>