Package javax.naming

Examples of javax.naming.CommunicationException.initCause()


                Hashtable bindings = getProvider().list(myName);
                return new RepBindings<Binding>(bindings);
            } catch (RemoteException ex) {
                CommunicationException ce = new CommunicationException(ex
                        .toString());
                ce.initCause(ex);
                throw ce;
            }
        }

        name = getRelativeName(name);
View Full Code Here


            try {
                getProvider().destroySubcontext(name);
            } catch (RemoteException e) {
                CommunicationException ce = new CommunicationException(e
                        .toString());
                ce.initCause(e);
                throw ce;
            }
        }
    }
View Full Code Here

                    c = new SerialContext(name, myEnv, habitat);
                }
            } catch (RemoteException e) {
                CommunicationException ce = new CommunicationException(e
                        .toString());
                ce.initCause(e);
                throw ce;
            }
            return c;
        }
    }
View Full Code Here

         next.addNamingListener(this, target, scope, l);
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("addNamingListener failed");
         ce.initCause(e);
      }
   }

   public void addNamingListener(String target, int scope, NamingListener l)
      throws NamingException
View Full Code Here

         next.removeNamingListener(l);
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("removeNamingListener failed");
         ce.initCause(e);
      }
   }

   public boolean targetMustExist()
      throws NamingException
View Full Code Here

         targetMustExist = next.targetMustExist();
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("removeNamingListener failed");
         ce.initCause(e);
      }
      return targetMustExist;
   }
   // End EventContext methods
View Full Code Here

         next.addNamingListener(this, target, scope, l);
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("addNamingListener failed");
         ce.initCause(e);
      }
   }

   public void addNamingListener(String target, int scope, NamingListener l)
      throws NamingException
View Full Code Here

         next.removeNamingListener(l);
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("removeNamingListener failed");
         ce.initCause(e);
      }
   }

   public boolean targetMustExist()
      throws NamingException
View Full Code Here

         targetMustExist = next.targetMustExist();
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("removeNamingListener failed");
         ce.initCause(e);
      }
      return targetMustExist;
   }
   // End EventContext methods
View Full Code Here

         next.addNamingListener(this, target, scope, l);
      }
      catch (RemoteException e)
      {
         CommunicationException ce = new CommunicationException("addNamingListener failed");
         ce.initCause(e);
      }
   }

   public void addNamingListener(String target, int scope, NamingListener l)
      throws NamingException
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.