Package javax.naming

Examples of javax.naming.NotContextException


        if (o == this) {
            return new ListEnumeration();
        } else if (o instanceof Context) {
            return ((Context)o).list("");
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here


        if (o == this) {
            return new ListBindingEnumeration();
        } else if (o instanceof Context) {
            return ((Context)o).listBindings("");
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here

        if (o == this) {
            return new ListEnumeration();
        } else if (o instanceof Context) {
            return ((Context) o).list("");
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here

        if (o == this) {
            return new ListBindingEnumeration();
        } else if (o instanceof Context) {
            return ((Context) o).listBindings("");
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here

        if (o == this) {
            return list();
        } else if (o instanceof AbstractReadOnlyContext) {
            return ((AbstractReadOnlyContext) o).list();
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here

        if (o == this) {
            return listBindings();
        } else if (o instanceof AbstractReadOnlyContext) {
            return ((AbstractReadOnlyContext) o).listBindings();
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here

                    _nc.bind(pth, (org.omg.CORBA.Object) obj);
            } else
                throw JacORBMessages.MESSAGES.notACorbaObject();
        } catch (BAD_PARAM e) {
            // probably narrow() failed?
            NamingException ne = new NotContextException(name.toString());
            ne.setRootCause(e);
            throw ne;
        } catch (Exception e) {
            throw org.jboss.as.jacorb.naming.jndi.ExceptionMapper.mapException(e, this, pth);
        }
    }
View Full Code Here

                java.lang.Object obj = lookup(name);
                if (obj instanceof CNCtx) {
                    return new org.jboss.as.jacorb.naming.jndi.CNBindingEnumeration(
                            (CNCtx) obj, true, _env);
                } else {
                    throw new NotContextException(name.toString());
                }
            } catch (NamingException ne) {
                throw ne;
            } catch (BAD_PARAM e) {
                NamingException ne =
                        new NotContextException(name.toString());
                ne.setRootCause(e);
                throw ne;
            }
        }
        return new org.jboss.as.jacorb.naming.jndi.CNBindingEnumeration(this, false, _env);
    }
View Full Code Here

                        (javax.naming.Context) callResolve(path);
                CNCtx cnc = (CNCtx) ctx;
                the_nc = cnc._nc;
                cnc.close(); //remove the reference to the context
            } catch (ClassCastException e) {
                throw new NotContextException(name.toString());
            } catch (CannotProceedException e) {
                javax.naming.Context cctx = getContinuationContext(e);
                cctx.destroySubcontext(e.getRemainingName());
                return;
            } catch (NameNotFoundException e) {
View Full Code Here

        if (o == this) {
            return new ListEnumeration();
        } else if (o instanceof Context) {
            return ((Context)o).list("");
        } else {
            throw new NotContextException();
        }
    }
View Full Code Here

TOP

Related Classes of javax.naming.NotContextException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.