com.intrinsyc.janet
Class JNDIContext

java.lang.Object
  |
  +--com.intrinsyc.janet.JNDIContext

public class JNDIContext
extends java.lang.Object

This class provides an API to access JNDI remotely. The initial context settings for JNDI are read from the configuration file, and may be modified with setProperty().

© 2007 Intrinsyc Software International, Inc. All rights reserved.

Version:
1.4

Constructor Summary
JNDIContext()
           
 
Method Summary
 java.lang.Object Lookup(java.lang.String className, java.lang.String JNDIName)
          Accesses a Java object using JNDI lookup.
 void setProperty(java.lang.String key, java.lang.String value)
          Sets a JNDI property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIContext

public JNDIContext()
Method Detail

Lookup

public java.lang.Object Lookup(java.lang.String className,
                               java.lang.String JNDIName)
                        throws java.lang.ClassNotFoundException,
                               javax.naming.NamingException,
                               RemoteException
Accesses a Java object using JNDI lookup.

Parameters:
className - The name of the class to lookup.
JNDIName - The JNDI name.
Returns:
Object
Throws:
java.lang.ClassNotFoundException
javax.naming.NamingException
RemoteException

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Sets a JNDI property.

Parameters:
key - The name of the property.
value - The value to set the named property to.