public class NamingContextFactory extends Object implements InitialContextFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
JAVA_HOST_PROPERTY
Name of the property which defines the host name used when
creating an initial context using this factory.
|
static String |
JAVA_PORT_PROPERTY
Name of the property which defines the listener port used 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.
|
| Constructor and Description |
|---|
NamingContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
Context |
getInitialContext(Hashtable env) |
static NamingConnection |
getNamingConnection(Hashtable env) |
public static final String JAVA_PORT_PROPERTY
public static final String JAVA_HOST_PROPERTY
public static final String SCN_PORT_PROPERTY
public static final String SCN_HOST_PROPERTY
public static final String SCN_PROVIDER_URL
public Context getInitialContext(Hashtable env) throws NamingException
getInitialContext in interface InitialContextFactoryenv - This contains the hostname and the port.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.public static NamingConnection getNamingConnection(Hashtable env) throws NamingException
NamingExceptionCopyright © 2016 ScalAgent D.T.. All Rights Reserved.