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 HOST_PROPERTY
          This property which defines the host name must be passed when creating an initial context using this factory.
static java.lang.String PORT_PROPERTY
          This property which defines the listener port must be passed when creating an initial context using this factory.
 
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

PORT_PROPERTY

public static final java.lang.String 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

HOST_PROPERTY

public static final java.lang.String 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
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