org.jboss.naming
Class BridgeNamingContextFactory

java.lang.Object
  extended byorg.jnp.interfaces.NamingContextFactory
      extended byorg.jboss.naming.BridgeNamingContextFactory
All Implemented Interfaces:
InitialContextFactory, ObjectFactory

public class BridgeNamingContextFactory
extends org.jnp.interfaces.NamingContextFactory

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.

Version:
$Revision: 1.1.4.1 $
Author:
Scott.Stark@jboss.org
See Also:
InitialContextFactory

Constructor Summary
BridgeNamingContextFactory()
           
 
Method Summary
 Context getInitialContext(Hashtable env)
           
 
Methods inherited from class org.jnp.interfaces.NamingContextFactory
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 Context getInitialContext(Hashtable env)
                          throws NamingException
Throws:
NamingException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.