fr.dyade.aaa.jndi2.client
Class NamingContextFactory

java.lang.Object
  extended byfr.dyade.aaa.jndi2.client.NamingContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory
Direct Known Subclasses:
SoapExt_NamingContextFactory

public class NamingContextFactory
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory


Field Summary
static java.lang.String JAVA_HOST_PROPERTY
          This property which defines the host name must be passed when creating an initial context using this factory.
static java.lang.String JAVA_PORT_PROPERTY
          This property which defines the listener port must be passed when creating an initial context using this factory.
static java.lang.String SCN_HOST_PROPERTY
          Specific property.
static java.lang.String SCN_PORT_PROPERTY
          Specific property.
static java.lang.String SCN_PROVIDER_URL
          Specific property.
 
Constructor Summary
NamingContextFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable env)
           
static NamingConnection getNamingConnection(java.util.Hashtable env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_PORT_PROPERTY

public static final java.lang.String JAVA_PORT_PROPERTY
This property which defines the listener port must be passed when creating an initial context using this factory.

See Also:
Constant Field Values

JAVA_HOST_PROPERTY

public static final java.lang.String JAVA_HOST_PROPERTY
This property which defines the host name must be passed when creating an initial context using this factory.

See Also:
Constant Field Values

SCN_PORT_PROPERTY

public static final java.lang.String SCN_PORT_PROPERTY
Specific property. It is useful when several naming provider use the same property.

See Also:
Constant Field Values

SCN_HOST_PROPERTY

public static final java.lang.String SCN_HOST_PROPERTY
Specific property. It is useful when several naming provider use the same property.

See Also:
Constant Field Values

SCN_PROVIDER_URL

public static final java.lang.String SCN_PROVIDER_URL
Specific property. It is useful when several naming provider use the same property.

See Also:
Constant Field Values
Constructor Detail

NamingContextFactory

public NamingContextFactory()
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
Parameters:
env - This contains the hostname and the port.
Returns:
A JNDI initial context.
Throws:
javax.naming.NamingException - Thrown if the host and port properties aren't strings, if the port string does not represent a valid number, or if an exception is thrown from the NamingContext constructor.

getNamingConnection

public static NamingConnection getNamingConnection(java.util.Hashtable env)
                                            throws javax.naming.NamingException
Throws:
javax.naming.NamingException


Copyright ? 2004 Scalagent - All rights reserved