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:
- java.io.Serializable
- public class MissingContextException
- extends javax.naming.NamingException
Thrown when a naming context has not been found
whereas its parent naming context contains a
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.
- See Also:
- Serialized Form
Fields inherited from class javax.naming.NamingException |
remainingName, resolvedName, resolvedObj, rootException |
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 |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MissingContextException
public MissingContextException(NamingContextId missingContextId,
javax.naming.CompositeName name)
- Constructs a
MissingContextException
.
- Parameters:
missingContextId
- the identifier of the missing context
getMissingContextId
public final NamingContextId getMissingContextId()
getName
public final javax.naming.CompositeName getName()
toString
public java.lang.String toString()
Copyright ? 2004 Scalagent - All rights reserved