public class MissingContextException extends NamingException
ContextRecord indicating that
the naming context exists.
This may happen in a distributed JNDI configuration
when a naming context has not been
locally created yet. For example if the context
/A has been created on the server 0 and the context
/A/B on the server 1. If the server 2 starts, it gets
from the server 0 the naming context /A
containing a ContextRecord named B.
If a JNDI request is asked about B (e.g. bind /A/B/C)
then the server 2 can't find the naming context B because
it still didn't get the naming data from server 1. So a
MissingContextException is thrown.| Modifier and Type | Field and Description |
|---|---|
private NamingContextId |
missingContextId
The identifier of the missing context
|
private CompositeName |
name |
private static long |
serialVersionUID |
remainingName, resolvedName, resolvedObj, rootException| Constructor and Description |
|---|
MissingContextException(NamingContextId missingContextId,
CompositeName name)
Constructs a
MissingContextException. |
| Modifier and Type | Method and Description |
|---|---|
NamingContextId |
getMissingContextId() |
CompositeName |
getName() |
String |
toString() |
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toStringaddSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTraceprivate static final long serialVersionUID
private NamingContextId missingContextId
private CompositeName name
public MissingContextException(NamingContextId missingContextId, CompositeName name)
MissingContextException.missingContextId - the identifier of the missing contextpublic final NamingContextId getMissingContextId()
public final CompositeName getName()
public String toString()
toString in class NamingExceptionCopyright © 2019 ScalAgent D.T.. All Rights Reserved.