|
Protomatter Classes v1.1.6 | |||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
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. |
The JNDI implementation provided by PAS.
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 |
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
| Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |