protected JndiReply onMissingRecord(MissingRecordException mre, RequestContext reqCtx) { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ReplicationManager.onMissingRecord(" + mre + ',' + reqCtx + ')'); CompositeName resolvedName = (CompositeName)mre.getNameNotFoundException().getResolvedName(); if (mre.getOwnerId().equals(getId()) || resolvedName.equals(reqCtx.getResolvedName())) { // The resolved context has already been updated. return new JndiError(mre.getNameNotFoundException()); } reqCtx.setResolvedName(resolvedName); synchronizeRequest((AgentId)mre.getOwnerId(), reqCtx); return null; }
new NameNotFoundException(); nnfe.setResolvedName(path); throw new MissingRecordException( nc.getId(), nc.getOwnerId(), nnfe); } else if (r instanceof ObjectRecord) {
/** * In a centralized JNDI server a missing record shows that the * name asked by the JNDI request doesn't exist. So the * <code>NameNotFoundException</code> is directly forwarded to * the client. * A subclass may override this behavior in order * to try to resolve the missing record. * * @param mre the missing context exception * * @param reqCtx the JNDI request context that raised * the exception. * * @return the JNDI reply. * May be <code>null</code> if the resolution is asynchronous. */ protected JndiReply onMissingRecord(MissingRecordException mre, RequestContext reqCtx) { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "RequestManager.onMissingRecord(" + mre + ',' + reqCtx + ')'); return new JndiError(mre.getNameNotFoundException()); }
new NameNotFoundException(); nnfe.setResolvedName(path); throw new MissingRecordException( nc.getId(), nc.getOwnerId(), nnfe); } else if (r instanceof ObjectRecord) {
/** * In a centralized JNDI server a missing record shows that the * name asked by the JNDI request doesn't exist. So the * <code>NameNotFoundException</code> is directly forwarded to * the client. * A subclass may override this behavior in order * to try to resolve the missing record. * * @param mre the missing context exception * * @param reqCtx the JNDI request context that raised * the exception. * * @return the JNDI reply. * May be <code>null</code> if the resolution is asynchronous. */ protected JndiReply onMissingRecord(MissingRecordException mre, RequestContext reqCtx) { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "RequestManager.onMissingRecord(" + mre + ',' + reqCtx + ')'); return new JndiError(mre.getNameNotFoundException()); } }
protected JndiReply onMissingRecord(MissingRecordException mre, RequestContext reqCtx) { if (Trace.logger.isLoggable(BasicLevel.DEBUG)) Trace.logger.log(BasicLevel.DEBUG, "ReplicationManager.onMissingRecord(" + mre + ',' + reqCtx + ')'); CompositeName resolvedName = (CompositeName)mre.getNameNotFoundException().getResolvedName(); if (mre.getOwnerId().equals(getId()) || resolvedName.equals(reqCtx.getResolvedName())) { // The resolved context has already been updated. return new JndiError(mre.getNameNotFoundException()); } reqCtx.setResolvedName(resolvedName); synchronizeRequest((AgentId)mre.getOwnerId(), reqCtx); return null; }
throw new MissingRecordException( parentNc.getId(), parentNc.getOwnerId(),
throw new MissingRecordException( parentNc.getId(), parentNc.getOwnerId(),