Package fr.dyade.aaa.jndi2.impl
Class MissingContextException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.naming.NamingException
-
- fr.dyade.aaa.jndi2.impl.MissingContextException
-
- All Implemented Interfaces:
Serializable
public class MissingContextException extends NamingException
Thrown when a naming context has not been found whereas its parent naming context contains aContextRecordindicating 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 aContextRecordnamed 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 aMissingContextExceptionis thrown.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private NamingContextIdmissingContextIdThe identifier of the missing contextprivate CompositeNamenameprivate static longserialVersionUIDdefine serialVersionUID for interoperability-
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
-
-
Constructor Summary
Constructors Constructor Description MissingContextException(NamingContextId missingContextId, CompositeName name)Constructs aMissingContextException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamingContextIdgetMissingContextId()CompositeNamegetName()StringtoString()-
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
define serialVersionUID for interoperability- See Also:
- Constant Field Values
-
missingContextId
private NamingContextId missingContextId
The identifier of the missing context
-
name
private CompositeName name
-
-
Constructor Detail
-
MissingContextException
public MissingContextException(NamingContextId missingContextId, CompositeName name)
Constructs aMissingContextException.- Parameters:
missingContextId- the identifier of the missing contextname- the composite name.
-
-
Method Detail
-
getMissingContextId
public final NamingContextId getMissingContextId()
-
getName
public final CompositeName getName()
-
toString
public String toString()
- Overrides:
toStringin classNamingException
-
-