|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.carol.cmi.config.JNDIConfig
@ThreadSafe public final class JNDIConfig
Utility to configure JNDI when CMI is used in standalone.
The methods getCMIEnv(), getCMIEnv(URL) and getCMIEnv(Properties)
allows to get a proper environment before creating a new InitialContext.
When Carol is preferred this class must not be used.
| Field Summary | |
|---|---|
static java.lang.String |
INITIAL_PROVIDER_URLS
Property name for defining the initial provider URLs. |
static java.lang.String |
SERVER_MODE
Property name for specifying if we are in server mode. |
static java.lang.String |
WRAPPED_INITIAL_CONTEXT_FACTORY
Property name for defining the wrapped InitialContextFactory. |
static java.lang.String |
WRAPPED_PROTOCOL
Property name for defining the protocol. |
| Method Summary | |
|---|---|
static java.util.Hashtable<java.lang.String,?> |
getCMIEnv()
Returns the JNDI environment to use CMI in standalone. |
static java.util.Hashtable<java.lang.String,?> |
getCMIEnv(java.util.Properties properties)
Returns the JNDI environment to use CMI in standalone. |
static java.util.Hashtable<java.lang.String,?> |
getCMIEnv(java.net.URL url)
Returns the JNDI environment to use CMI in standalone. |
static java.lang.String |
getProtocol()
|
static void |
setProtocol(java.lang.String protocol)
Sets the protocol used with CMI. |
| 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 WRAPPED_PROTOCOL
public static final java.lang.String INITIAL_PROVIDER_URLS
public static final java.lang.String WRAPPED_INITIAL_CONTEXT_FACTORY
public static final java.lang.String SERVER_MODE
| Method Detail |
|---|
public static java.util.Hashtable<java.lang.String,?> getCMIEnv()
throws CMIConfigException
CMIConfigException - if the provided configuration file is not valid
public static java.util.Hashtable<java.lang.String,?> getCMIEnv(java.net.URL url)
throws CMIConfigException
url - an URL to find the configuration file
CMIConfigException - if the provided configuration file is not valid
public static java.util.Hashtable<java.lang.String,?> getCMIEnv(java.util.Properties properties)
throws CMIConfigException
properties - a set of properties
CMIConfigException - if the provided configuration file is not validpublic static java.lang.String getProtocol()
public static void setProtocol(java.lang.String protocol)
protocol - a name of protocol
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||