javax.naming.Context
, RmiContextConstants
TengahContext
, WLJMSOBSContext
public interface WLContext extends javax.naming.Context, RmiContextConstants
javax.naming.Context
with several WebLogic-specific
environment properties, and methods for deleting one of several
objects stored in a pool under one name.Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
ALLOW_EXTERNAL_APP_LOOKUP |
Specifies whether external clients or other applications
are allowed to lookup bindings from an application version.
|
static java.lang.String |
ALLOW_GLOBAL_RESOURCE_LOOKUP |
Specifies whether versioned clients or applications
are allowed to lookup bindings of global resources.
|
static java.lang.String |
CREATE_INTERMEDIATE_CONTEXTS |
Specifies how to handle non-existent intermediate contexts.
|
static java.lang.String |
DELEGATE_ENVIRONMENT |
Specifies the JNDI environment to use for connecting to a
third-party naming service through the WebLogic Server.
|
static java.lang.String |
ENABLE_DEFAULT_USER |
On the client side no default user would not be set.
|
static java.lang.String |
ENABLE_SERVER_AFFINITY |
Specifies if multiple context creation's from the same VM
should reuse existing connections or round-robin across all
servers in the cluster.
|
static java.lang.String |
IDENTITY_DOMAIN |
Set this property to specify the identity domain for the user.
|
static java.lang.String |
PIN_TO_PRIMARY_SERVER |
If
true , this property forces the context stub to connect to
the primary naming server only (the server currently running at
host specified by Context.PROVIDER_URL ). |
static java.lang.String |
PROVIDER_RJVM |
Specifies the RJVM to use as the naming server.
|
static java.lang.String |
RELAX_VERSION_LOOKUP |
Specifies the lookup behavior when bindings from the current
application version cannot be found.
|
static java.lang.String |
REPLICATE_BINDINGS |
Specifies whether tree modifications are replicated and is
only applicable when connecting to WebLogic Servers that are
running in a cluster.
|
static java.lang.String |
SSL_CLIENT_CERTIFICATE |
Specifies an RSA private key and a chain of certificates for
client authentication.
|
static java.lang.String |
SSL_CLIENT_KEY_PASSWORD |
Specifies the pasword for an encrypted PKCS5/PKCS8 RSA private key.
|
static java.lang.String |
SSL_ROOT_CA_FINGERPRINTS |
Specifies which certificate authorities to trust.
|
static java.lang.String |
SSL_SERVER_NAME |
Specifies an expected name of an SSL server as a String.
|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
CONNECT_TIMEOUT, REQUEST_TIMEOUT, RESPONSE_READ_TIMEOUT, RMI_TIMEOUT
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getNameInNamespace(java.lang.String relativeName) |
Returns the full name of a property, relative to the root of
this namespace.
|
void |
unbind(java.lang.String name,
java.lang.Object service) |
Unbinds the specified service from the specified name.
|
void |
unbind(javax.naming.Name name,
java.lang.Object service) |
Unbinds the specified service from the specified name.
|
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind
static final java.lang.String CREATE_INTERMEDIATE_CONTEXTS
true
, performing a bind, rebind, or
createSubcontext with a name that specifies non-existent
intermediate contexts causes those contexts to be created.static final java.lang.String DELEGATE_ENVIRONMENT
WLInitialContextFactory
uses the WebLogic
Server to create a three-tier connection to a third-party naming
service. The properties contained in the Hashtable specified by
this property are used to create an initial context for the
third-party naming service, upon which the original initial
context delegates its work to the third-party's initial context.static final java.lang.String PROVIDER_RJVM
Context.PROVIDER_URL
. Instead
of a URL, this property must specify an RJVM representing the
desired server.static final java.lang.String REPLICATE_BINDINGS
false
changes this behavior and should be
done with extreme caution: a value of false
means that
modifications to the tree caused by bind, unbind,
createSubcontext, and destroySubcontext will not be
replicated.
Understand the implications of this property before changing its default value(true).
static final java.lang.String PIN_TO_PRIMARY_SERVER
true
, this property forces the context stub to connect to
the primary naming server only (the server currently running at
host specified by Context.PROVIDER_URL
). This disables
fail-over for the context. Only applicable when connecting to WebLogic Servers that are
running in a cluster. By default this property is false
.
This setting should be used when a connection to a specific
server is required. Note that this setting will only have the
desired effect if Context.PROVIDER_URL
specifes a
host name that maps only to a single server address. It will
not work, for example, if the host name maps to multiple server
addresses in DNS.
static final java.lang.String SSL_ROOT_CA_FINGERPRINTS
static final java.lang.String SSL_SERVER_NAME
www.weblogic.com
.static final java.lang.String SSL_CLIENT_CERTIFICATE
PEMInputStream
,
Constant Field Valuesstatic final java.lang.String SSL_CLIENT_KEY_PASSWORD
static final java.lang.String ENABLE_SERVER_AFFINITY
static final java.lang.String RELAX_VERSION_LOOKUP
true
, the currently active version will be
returned, if any. If the property is set to false
,
a NameNotFoundException
will be returned.
The default value of the property is false
.
Users should exercise discretion and ensure that components
of different application versions are compatible when
setting the property to true
.
static final java.lang.String ALLOW_EXTERNAL_APP_LOOKUP
The default value of the property is false
.
Users should exercise discretion when setting the property
to true
, as this may potentially cause in-flight
work not being tracked properly and application versions to
be retired prematurely.
static final java.lang.String ALLOW_GLOBAL_RESOURCE_LOOKUP
The default value of the property is false
.
Users should exercise discretion when setting the property
to true
, and ensure that simultaneous access
of the global resources are either tolerated or handled
properly by the application.
static final java.lang.String ENABLE_DEFAULT_USER
static final java.lang.String IDENTITY_DOMAIN
java.lang.String getNameInNamespace(java.lang.String relativeName) throws javax.naming.NamingException
relativeName
- Property name relative to this contextjavax.naming.NamingException
- if a failure occursvoid unbind(javax.naming.Name name, java.lang.Object service) throws javax.naming.NamingException
name
- Name of service to unbind (as a Name object)service
- Service object to be unboundjavax.naming.NamingException
- if the service is not availablevoid unbind(java.lang.String name, java.lang.Object service) throws javax.naming.NamingException
name
- Name of service to unbind (as a String)service
- Service object to be unboundjavax.naming.NamingException
- if the service is not available