getRootOwnerId
protected AgentId getRootOwnerId()
Returns the root naming context owner
identifier.
May be overridden by a subclass.
getServerImpl
protected final ServerImpl getServerImpl()
invokeOwner
protected JndiReply invokeOwner(AgentId owner,
RequestContext reqCtx)
A centralized JNDI server returns a JNDI error
explaining that this server is not the owner
of the context on which the JNDI operation is called.
A subclass may override this behavior in order
to invoke the owner of the naming context.
owner
- the identifier of the naming server that
owns the naming context on which the
JNDI operation is called.reqCtx
- the JNDI request context that raised
the exception.
- the JNDI reply.
May be
null
if the owner invocation
is asynchronous.
onMissingContext
protected JndiReply onMissingContext(MissingContextException mce,
RequestContext reqCtx)
In a centralized JNDI server a missing context shows
that the naming data are unconsistent. So it throws an error.
A subclass may override this behavior in order
to try to resolve the missing context.
mce
- the missing context exceptionreqCtx
- the JNDI request context that raised
the exception.
- the JNDI reply.
May be
null
if the resolution is asynchronous.
onMissingRecord
protected JndiReply onMissingRecord(MissingRecordException mre,
RequestContext reqCtx)
In a centralized JNDI server a missing record shows that the
name asked by the JNDI request doesn't exist. So the
NameNotFoundException
is directly forwarded to
the client.
A subclass may override this behavior in order
to try to resolve the missing record.
mre
- the missing context exceptionreqCtx
- the JNDI request context that raised
the exception.
- the JNDI reply.
May be
null
if the resolution is asynchronous.
readBag
public void readBag(ObjectInputStream in)
throws IOException,
ClassNotFoundException
setContainer
public void setContainer(Container container)
writeBag
public void writeBag(ObjectOutputStream out)
throws IOException