问题
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