Protomatter Classes v1.1.6

Package com.protomatter.pas.jndi

The JNDI implementation provided by PAS.

See:
          Description

Class Summary
JNDIUtil A utility class for looking up servers in the PAS JNDI tree.
PASContext PAS's (incomplete) implementation of the javax.naming.Context interface.
 

Package com.protomatter.pas.jndi Description

The JNDI implementation provided by PAS.

JNDI

PAS provides a very simple (and incomplete) implementation of the JNDI 1.1.1 SPI interfaces. The following methods are supported:
    Context.bind(String name, Object o)
    Context.rebind(String name, Object o)
    Context.lookup(String name)
    
Which is enough to get most things done. A full implementation of the 1.1.1 SPI interfaces is planned, but will not be completed until there's a real need for it.

To obtain a context from PAS, Do the following:

    import javax.naming.*; // JNDI stuff

    ...

    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
      "com.protomatter.pas.jndi.spi.PASInitialContextFactory");
    Context context = new InitialContext(env);
    
And that's all you have to do.


Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

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