Is it possible to run OSGi components within Weblogic 10.3?
-
06-07-2019 - |
Question
Is it possible to run OSGi components within Weblogic 10.3? From what i have read it is not possible but im asking just to be 100% sure. There is no option to swap out WL 10.3 so there is no need to list any other application servers or OSGi containers.
Thanx
Solution
You can embed an osgi container inside of WLS 10.3, then deploy your bundles inside it.
Equinox in a Servlet Container
It's pretty rough, but might be worth a look.
WLS 10.3 supports j2ee deployable libraries which can be used to modularize a large application.
OTHER TIPS
What do you mean by OSGi components ? If you mean a bundle, then you can certainly load it, since a bundle is just a .jar file with additional metadata. However you're not going to get the lifecycle events, and if the bundle depends on these to bind to additional services then you will have a problem.