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

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


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

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

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

--------------------------------------------------------------
Having said above, its one of the fundamental features of our OSGi/AS7 integration that OSGi bundles can access services that are registered using the plain MSC service API. You would not need to have a dependency on org.osgi.core let alone org.jboss-as-osgi

All you need to do is register the MSC service with an alias

*   jbosgi.javax.naming.InitialContext*

The OSGi API uses the FQN on the interface that the service implements. Any service that is prefixed with 'jbosgi' can be found like this using the OSGi service API. Also note, that assignability contstraints apply. So the module that provides the interface must be registered with OSGi layer and must export the interface package. The requesting bundle must import that package and have a wire to the exporter

This is descibed in more detail in:  http://jbossosgi.blogspot.com/2010/11/jboss-as7-osgi-integration.html JBoss AS7 OSGi Integration
--------------------------------------------------------------

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

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/3ac429f2/attachment.html 


More information about the jboss-dev-forums mailing list