JBOSS 7 - Osgi Bundles not present in JNDI TREE

我的梦境 提交于 2019-12-25 01:55:48

问题


I have a bundle in JBOSS7 Bundle Repository.

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.

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...

Some ideas?

Thanks a lot!


回答1:


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



来源:https://stackoverflow.com/questions/7513242/jboss-7-osgi-bundles-not-present-in-jndi-tree

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!