On 01/23/2012 12:58 PM, David Bosschaert wrote:
Hi all,
I'm looking at integrating the OSGi JNDI spec [1] with AS7.
Implementations of this spec (which exposes OSGi services via JNDI to
allow JavaEE integration) create a few javax.naming.spi.ObjectFactory
instances to handle some additional namespaces, e.g. osgi:service lookups.
To get this working with AS7 I can call
org.jboss.as.naming.InitialContext.addUrlContextFactory(scheme,
myObjectFactory)
and that works fine.
However, I'm curious, is there a non-JBoss-specific way to do this too
(i.e. part of the JEE naming spec). If there is, I can make the Apache
Aries OSGi-JNDI implementation call this directly and it would avoid the
need for some AS7-specific glue code...
http://docs.oracle.com/javase/jndi/tutorial/beyond/url/initctx.html
Carlo
Thanks,
David
[1] Chapter 126 in the 4.2 Enterprise Spec
http://www.osgi.org/Download/Release4V42
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev