[jboss-as7-dev] JNDI integration question

Carlo de Wolf cdewolf at redhat.com
Mon Jan 23 07:02:36 EST 2012


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list