org.jboss.naming
Class BridgeNamingContextFactory

java.lang.Object
  extended byorg.jnp.interfaces.NamingContextFactory (src) 
      extended byorg.jboss.naming.BridgeNamingContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory, javax.naming.spi.ObjectFactory

public class BridgeNamingContextFactory
extends NamingContextFactory (src)

A naming provider InitialContextFactory implementation that combines two Naming services to allow for delegation of lookups from one to the other. The default naming service is specified via the standard Context.PROVIDER_URL property while the secondary service is specified using an org.jboss.naming.provider.url2 property. An example of where this would be used is to bridge between the local JNDI service and the HAJNDI service. Lookups into the local JNDI service that fail would then try the HAJNDI service.

See Also:
InitialContextFactory

Constructor Summary
BridgeNamingContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable env)
           
 
Methods inherited from class org.jnp.interfaces.NamingContextFactory (src)
getObjectInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeNamingContextFactory

public BridgeNamingContextFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable env)
                                       throws javax.naming.NamingException
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory
Overrides:
getInitialContext in class NamingContextFactory (src)
Throws:
javax.naming.NamingException