fr.dyade.aaa.jndi2.haclient
Class HANamingContextFactory

java.lang.Object
  extended by fr.dyade.aaa.jndi2.haclient.HANamingContextFactory
All Implemented Interfaces:
javax.naming.spi.InitialContextFactory

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


Constructor Summary
HANamingContextFactory()
           
 
Method Summary
private static java.lang.String getEnvProperty(java.util.Hashtable env, java.lang.String propName)
           
 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
 

Constructor Detail

HANamingContextFactory

public HANamingContextFactory()
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.

getEnvProperty

private static java.lang.String getEnvProperty(java.util.Hashtable env,
                                               java.lang.String propName)

getNamingConnection

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


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.