有没有办法在Apache Felix中部署爆炸捆绑? [英] Is there a way to deploy exploded bundles in Apache Felix?
问题描述
我们正在考虑重新构建我们的Web应用程序,并希望转向更加模块化的解决方案,OSGi似乎满足了我们的很多需求。
We are looking at rearchitecting our web application and want to move to a more modular solution, OSGi seems to meet a lot of our needs.
我来了跨越Apache Felix项目,并采取它的旋转。它看起来很坚固,但我发现开发周期有点慢,因为它需要一个maven构建的bundle来使任何代码更改生效。
I've come across the Apache Felix project and taken it for a spin. It looks solid yet I find the development cycle a bit slow as it requires a maven build of the bundle(s) to make any code changes effective.
相反,我希望能够在Eclipse编译课程之后重新加载软件包,而无需任何额外的构建/打包。类似于Tomcat和其他servlet容器如何支持部署爆炸式战争文件。
Instead I would like to be able to reload a bundle once classes have been compiled by Eclipse, without any extra building/packaging. Similar to how Tomcat and other servlet containers support deployment of "exploded" war files.
这可能与Felix或任何其他OSGi容器有关吗?
Is this possible to do with Felix or any other OSGi container?
推荐答案
在Gogo shell中,您可以执行以下操作:
In the Gogo shell, you can do:
install reference:file:/path/to/exploded/directory
这将安装一个爆炸包。分解目录的格式应该是一个捆绑JAR文件的格式。
This will install an exploded bundle. The format of the exploded directory should be exact that of a bundle JAR file.
这篇关于有没有办法在Apache Felix中部署爆炸捆绑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!