fr.dyade.aaa.jndi2.client

Class NamingContextFactory

Implemented Interfaces:
InitialContextFactory

public class NamingContextFactory
extends java.lang.Object
implements InitialContextFactory

Field Summary

static String
JAVA_HOST_PROPERTY
This property which defines the host name must be passed when creating an initial context using this factory.
static String
JAVA_PORT_PROPERTY
This property which defines the listener port must be passed when creating an initial context using this factory.
static String
SCN_HOST_PROPERTY
Specific property.
static String
SCN_PORT_PROPERTY
Specific property.
static String
SCN_PROVIDER_URL
Specific property.

Method Summary

Context
getInitialContext(Hashtable env)
static NamingConnection
getNamingConnection(Hashtable env)

Field Details

JAVA_HOST_PROPERTY

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


JAVA_PORT_PROPERTY

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


SCN_HOST_PROPERTY

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


SCN_PORT_PROPERTY

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


SCN_PROVIDER_URL

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

Method Details

getInitialContext

public Context getInitialContext(Hashtable env)
            throws NamingException

Parameters:
env - This contains the hostname and the port.

Returns:
A JNDI initial context.


getNamingConnection

public static NamingConnection getNamingConnection(Hashtable env)
            throws NamingException


Copyright B) 2004 Scalagent - All rights reserved