OSGI内的Jboss4
是否可以在 OSGI 容器中将 Jboss 4.2.3 作为捆绑包运行?与之相关的挑战是什么?
对于那些关心的人,我正在考虑在 OSGI 中运行 dcm4chee。
Is it possible to run Jboss 4.2.3 as a bundle inside OSGI container? What would be the challenges associated with it?
For those who cares, I am looking at running dcm4chee inside OSGI.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
虽然并非不可能,但这会非常困难,一个更简单的替代方案是将 OSGi 嵌入到 JBoss 中,请参阅:
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html
和
以编程方式启动 OSGi (Equinox)?
和
http://njbartlett.name/2011/03/07/embedding-osgi。 html
http://www.dcm4che.org/jira/browse/DCM -308 看起来他们正在添加支持以使 Jars 成为有效的包 - 难道你不能找出依赖关系并将它们部署到 OSGi 框架吗? OSGi 支持 JMX 和 JNDI。
除非对 JBoss 的内部有很大的依赖性,否则我建议使用第二个选项,但要注意 Class.forName 的使用和其他非 osgi 友好的代码。
While not impossible it would be incredibly hard, a simpler alternative would be to embed OSGi inside JBoss, see:
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html
and
Programmatically Start OSGi (Equinox)?
and
http://njbartlett.name/2011/03/07/embedding-osgi.html
http://www.dcm4che.org/jira/browse/DCM-308 Looks like they're adding support to make the Jars valid bundles - couldn't you just work out the dependencies and deploy these to an OSGi framework? OSGi has support for JMX and JNDI.
Unless there are huge dependencies on JBoss' internals, I'd suggest the second option, but beware of Class.forName usage and other non-osgi-friendly code.
我专门针对 dcm4che(注 1 e)工具包记录了 bug,而不是dcm4chee 战争。我建议为 dcm4chee 程序集记录一个新问题。然而,制作 dcm4che 工具包组件 osgi 包可能是让 dcm4chee 在 osgi 容器中运行的必要步骤。
I logged the bug specifically for the dcm4che (note 1 e) toolkits, not the dcm4chee war. I would suggest logging a new issue for the dcm4chee assembly. However, making the dcm4che toolkit components osgi bundles would likely be a required step in the direction of getting dcm4chee to run in an osgi container.