Unable to find OSGI services through JNDI

I work with JBossAS7. There are some OSGI modules in my application and most of them are different from OSGI. I tried searching for osgi services in the non-osgi subsystem via JNDI, but they are not present in the JNDI context. I found a similar problem in JBOSS 7 - Osgi Bundles missing from JNDI TREE , but I did not find any solution there. If the JBoss team has not yet implemented this functionality, how can I solve this problem now?

I tried to add my service to the JNDI context manually, but got an exception because the JNDI context is read-only (according to https://issues.jboss.org/browse/AS7-421 )

+3
source share
1 answer

( JBOSGI-81, ), , , Apache Aries JNDI OSGi JBoss AS7.

JNDI , NamingManager, , AS7 JNDI .

osgi:service/org.foo.SomeInterface

osgi:servicelist 

... . , , :

osgi:service/org.osgi.service.startlevel.StartLevel

AS7 7.1.2, ...

, , , , AS7/MSC OSGi, , , , . OSGi , AS7 (, ) , Dependencies.

+6

All Articles