Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedding Felix in Tomcat

Tags:

apache-felix

I am a newbie to OSGi, started using felix. I am at present well versed with the concept of bundles, service etc. I have a requirement where I can embed Felix into Tomcat, I tried googling the same but was unable to find a relevant solution for my purpose.

What I exactly need is.. Till now I used to deploy my web app bundles into embedded http jetty service/PAX web.. installed inside Felix, but now I want to put Felix into Apache Tomcat/any other application server, so that whenever my tomcat starts up I need my felix instance up and running, and at the same time should be able to deploy/install/start my bundles through felix.

Any kind of help would be greatly appreciated.

like image 472
user838937 Avatar asked Jul 11 '11 13:07

user838937


1 Answers

You might want to consider the Apache Sling Launchpad subproject. This creates a WAR file which can be deployed into any servlet container and which launches the Apache Felix framework as the OSGi framework.

See also the Sling Launchpad and Embedding Sling for more information.

like image 151
fmeschbe Avatar answered Oct 22 '22 01:10

fmeschbe