WebLogic和OSGi [英] WebLogic and OSGi

查看:262
本文介绍了WebLogic和OSGi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Weblogic Application Server中运行OSGi容器?我知道它适用于JBoss,Glassfish,并且有可能添加一个Equinox servlet桥接到您的OSGi项目(桥的实现太旧)。但是我想要类似于JBoss / Glassfish功能的东西,因为已经有OSGi实现,部署OSGi环境非常容易。我发现的大部分文章都很老,最近没有。有人可以帮助提示或更好的一些链接吗?



也许Bnd可以为我创建一个.war文件,但是如何实现它。我读到有可能。例子会很棒!



编辑



只是为那些仍然研究这种情况的人。自12.1.2版开始,Weblogic支持OSGi开箱即用。

解决方案

我会考虑 Apache Felix Http bridge 。对于我来说,它比古老的Equinox大桥好一点(我搞砸了一段时间,但是从来没有让它工作得很好),在我切换到Felix之后,我得到了很快的工作。



如果我正确理解你,你想制作一个'平原'战争文件,可以部署在任何Java EE服务器中。如果是这样,那么你的战争文件就没有什么OSGi,所以我不认为Bnd会为你做任何事情。


Is there a way to run an OSGi container in the Weblogic Application Server? I know that it works with JBoss, Glassfish and there are possibilities to add an Equinox servlet bridge to your OSGi project (implementation of the bridge is too old). But I want something similar to JBoss/Glassfish functionality where it is very easy to deploy your OSGi environment, because there are already OSGi implementations. Most of the articels I found were very old and there are no more recent ones. Can someone help with hints or better some links?

Maybe Bnd could create a .war file for me, but how can I achieve it. I read there is a possibility. Example would be great!

EDIT

Just for those who still look into that case. Since version 12.1.2 Weblogic supports OSGi out-of-the-box.

解决方案

I'd consider the Apache Felix Http bridge. It worked a lot better for me than the ancient Equinox bridge (I messed around with it for a while, but never got it to work well), after I switched to Felix I got something working pretty quickly.

If I understand you correctly, you want to make a 'plain' war file, that can be deployed in any Java EE server. If that's the case, there is nothing OSGi about your war file, so I don't think Bnd will do anything for you.

这篇关于WebLogic和OSGi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆