Protomatter Classes v1.1.6

com.protomatter.pas.jndi
Class JNDIUtil

java.lang.Object
  |
  +--com.protomatter.pas.jndi.JNDIUtil

public class JNDIUtil
extends java.lang.Object

A utility class for looking up servers in the PAS JNDI tree.


Method Summary
static void bind(javax.naming.Context ctx, java.lang.String name, java.lang.Object obj)
          Bind -- creates sub-contexts as needed.
static javax.naming.Context getContext()
          Gets a context using the com.protomatter.pas.jndi.spi.PASInitialContextFactory class as the initial context factory.
static java.lang.Object lookupRMIServer(java.lang.Class c)
          Given the class of the interface for an RMI server, find it in the JNDI tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

lookupRMIServer

public static java.lang.Object lookupRMIServer(java.lang.Class c)
                                        throws javax.naming.NamingException
Given the class of the interface for an RMI server, find it in the JNDI tree. This assumes that there is a variable caled JNDI_NAME on the class (a public static String) that is set to the JNDI location of that server.

getContext

public static javax.naming.Context getContext()
                                       throws javax.naming.NamingException
Gets a context using the com.protomatter.pas.jndi.spi.PASInitialContextFactory class as the initial context factory.

bind

public static void bind(javax.naming.Context ctx,
                        java.lang.String name,
                        java.lang.Object obj)
                 throws javax.naming.NamingException
Bind -- creates sub-contexts as needed.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6