JBOSS 7-JNDI TREE中不存在Osgi捆绑包 [英] JBOSS 7 - Osgi Bundles not present in JNDI TREE

查看:145
本文介绍了JBOSS 7-JNDI TREE中不存在Osgi捆绑包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在JBOSS7捆绑软件存储库中有一个捆绑软件.

I have a bundle in JBOSS7 Bundle Repository.

我想从WAR类抛出JNDI来查找它,但是在我的JBOSS7.0.1.Final AS中,JNDI树中存在任何osgi痕迹.

I want to lookup it from a WAR class throw JNDI, but in my JBOSS7.0.1.Final AS there is any trace of osgi in JNDI tree.

在JNDI树中,我仅找到"java:"和"java:jboss",我认为在部署捆绑软件时,AS应该将"osgi:"叶添加到树中. 为什么不? 特定于Osgi联盟的人说,部署osgi捆绑包后,应该可以将其抛出JNDI ...

In JNDI tree I found only "java:" and "java:jboss", I think that when I deploy a bundle the AS should add the "osgi:" leaf to the tree. Why not? Osgi Alliance specific says that when an osgi bundle is deployed it should be reachable throw JNDI...

一些想法?

非常感谢!

推荐答案

您是正确的,OSGi-JNDI规范的这一部分尚未完成,您可以在此处跟踪进度

You are right, this part of the OSGi-JNDI spec is not yet done, you can track the progress here https://issues.jboss.org/browse/JBOSGI-81

注意:有一种方法可以使它工作,请参见此处以了解更多详细信息:

Note: there is a way to get this working, see here for more details: Can't lookup OSGI services through JNDI

这篇关于JBOSS 7-JNDI TREE中不存在Osgi捆绑包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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