[jboss-dev-forums] [JBoss AS7 Development] - [JBAS-8599] Provide JNDI InitialContext as OSGi service

Thomas Diesler do-not-reply at jboss.com
Fri Nov 12 14:47:12 EST 2010


Thomas Diesler [http://community.jboss.org/people/thomas.diesler%40jboss.com] created the discussion

"[JBAS-8599] Provide JNDI InitialContext as OSGi service"

To view the discussion, visit: http://community.jboss.org/message/571051#571051

--------------------------------------------------------------
Jason sais

> Are the dependencies of naming on OSGi necessary? It seems like these 
> services should be created by the osgi subsystem. Is the problem making 
> these optional?
> 
> 
> 

I think its correct like this. The OSGi subsystem provides the OSGi 
service registry. Subsystem Foo may choose to publish a service in that 
registry which would then readily be available for installed bundles to 
use. The OSGi subsystem does not need to know about Foo.

The dependency on org.jboss.as.osgi is there because Foo provides a 
PASSIVE service which activates when the Framework comes up. If the 
Framework was coming up eagerly a dependency on org.osgi.core would be 
sufficient. You should see no performance impact due to these additional 
services (i.e. only passive service registration)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/571051#571051]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101112/34dfc252/attachment.html 


More information about the jboss-dev-forums mailing list