|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.util.jndi.JNDIUtils
LOG-DONE A utility class containing methods for setting up the JNDI environment and performing JNDI lookups
Field Summary | |
static java.lang.String |
APACHE_INITIAL_CONTEXT_FACTORY
Apache JNDI Initial Context Factory Prefix |
static java.lang.String |
APACHE_URL_PKG_PREFIX
Apache JNDI URL Package Prefix |
static java.lang.String |
JNDI_CONFIG
|
Constructor Summary | |
JNDIUtils()
|
Method Summary | |
static javax.naming.Context |
createSubcontexts(javax.naming.Context currentContext,
java.lang.String name)
Create all intermediate subcontexts. |
static java.lang.String |
getJNDIConfigFileName(org.apache.axis.MessageContext messageContext)
Get the location of the JNDI configuration file from the deployment descriptor |
static javax.naming.Context |
initializeDir(org.apache.axis.MessageContext msgCtx)
|
static javax.naming.Context |
initializeFile(org.apache.axis.MessageContext msgCtx)
|
static javax.naming.Context |
initJNDI()
Configure JNDI with the Apache Tomcat naming service classes and create the comp and env contexts |
static java.lang.Object |
lookup(javax.naming.Context context,
java.lang.String name,
java.lang.Class type)
Retrieves the named object on the specified context. |
static void |
parseJNDIConfig(javax.naming.Context initContext,
java.io.InputStream configInput,
org.apache.axis.AxisEngine engine)
Parse the given JNDI configuration and populate the JNDI registry using the parsed configuration |
static void |
parseJNDIConfig(java.io.InputStream configInput)
Parse the given JNDI configuration and populate the JNDI registry using the parsed configuration |
static java.lang.String |
toString(javax.naming.Context ctx,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String APACHE_URL_PKG_PREFIX
public static final java.lang.String APACHE_INITIAL_CONTEXT_FACTORY
public static final java.lang.String JNDI_CONFIG
Constructor Detail |
public JNDIUtils()
Method Detail |
public static javax.naming.Context initJNDI() throws java.lang.Exception
java.lang.Exception
public static java.lang.String getJNDIConfigFileName(org.apache.axis.MessageContext messageContext)
messageContext
- The message context to use for discovering
deployment information
public static void parseJNDIConfig(java.io.InputStream configInput) throws java.lang.Exception
configInput
- The configuration stream to parse
java.lang.Exception
public static void parseJNDIConfig(javax.naming.Context initContext, java.io.InputStream configInput, org.apache.axis.AxisEngine engine) throws java.lang.Exception
configInput
- The configuration stream to parse
java.lang.Exception
public static java.lang.Object lookup(javax.naming.Context context, java.lang.String name, java.lang.Class type) throws javax.naming.NamingException
context
- the context to perform lookup onname
- the name of the object to lookuptype
- the expected type of the object returned
javax.naming.NamingException
public static javax.naming.Context initializeDir(org.apache.axis.MessageContext msgCtx) throws java.lang.Exception
java.lang.Exception
public static javax.naming.Context initializeFile(org.apache.axis.MessageContext msgCtx) throws java.lang.Exception
java.lang.Exception
public static java.lang.String toString(javax.naming.Context ctx, java.lang.String name) throws javax.naming.NamingException
javax.naming.NamingException
public static javax.naming.Context createSubcontexts(javax.naming.Context currentContext, java.lang.String name) throws javax.naming.NamingException
javax.naming.NamingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |