2362N/A * Copyright (c) 1999, 2005, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * A convenience class to map the COS Naming exceptions to the JNDI exceptions. 0N/A * @author Raj Krishnamurthy 0N/A private static final boolean debug =
false;
0N/A // %%% We assume that rest returns *all* unprocessed components. 0N/A // Don't' know if that is a good assumption, given 0N/A // NotFound doesn't set rest as expected. -RL 0N/A // Wrap resolved NamingContext inside a CNCtx 0N/A // Guess that its name (which is relative to ctx) 0N/A // is the part of inputName minus rest_of_name 0N/A // %%% Using 1.2 & 1.3 Sun's tnameserv, 'rest' contains only the first 0N/A // component that failed, not *rest* as advertized. This is useless 0N/A // If one of those is not found, you get "aa" as 'rest'. 0N/A // Check that we're not talking to 1.2/1.3 Sun tnameserv 0N/A // Due to 1.2/1.3 bug that always returns single-item 'rest' 0N/A // Fixed in 1.4; perform calculations based on correct (1.4) behavior 0N/A // Calculate the components of the name that has been resolved 0N/A // First component of rest is found but not a context; keep it 0N/A // as part of resolved name 0N/A // Remove resolved component from rest 0N/A // No more remaining 0N/A // Create CPE and set common fields 0N/A // Lookup resolved name to get resolved object 0N/A // obj is a context and child is not found 0N/A // try getting its nns dynamically by constructing 0N/A // a Reference containing obj. 0N/A 669984699392133792L;
0N/A // Resolved name has trailing slash to indicate nns 0N/A // Not a context, use object factory to transform object. 0N/A "problem generating object using object factory");
0N/A // If a context, continue operation with context 0N/A // Add trailing slash 0N/A // Create nns reference 0N/A -
785132553978269772L;