Package javax.naming

Examples of javax.naming.CommunicationException


            if (broker != null) {
                data.put("destinations", broker.getDestinationContext(environment));
            }
        }
        catch (JMSException e) {
            CommunicationException exception = new CommunicationException("Failed to access embedded broker: " + e);
            exception.setRootCause(e);
            throw exception;
        }
        return new ReadOnlyContext(environment, data);
    }
View Full Code Here


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

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

      }
      catch (IOException e)
      {
         if (trace)
            log.trace("Discovery failed", e);
         NamingException ex = new CommunicationException(e.getMessage());
         ex.setRootCause(e);
         throw ex;
      }
      finally
      {
         try
View Full Code Here

               {
                  StringBuffer buffer = new StringBuffer(50);
                  buffer.append("Could not obtain connection to any of these urls: ").append(urls);
                  if (discoveryFailure != null)
                     buffer.append(" and discovery failed with error: ").append(discoveryFailure);
                  CommunicationException ce = new CommunicationException(buffer.toString());
                  ce.setRootCause(serverEx);
                  throw ce;
               }
            }
         }
         else
View Full Code Here

      }
      catch (IOException e)
      {
         if(log.isTraceEnabled())
            log.trace("Failed to retrieve stub from server " + key, e);
         NamingException ex = new CommunicationException("Failed to retrieve stub from server " + key);
         ex.setRootCause(e);
         throw ex;
      }
      catch (Exception e)
      {
         if(log.isTraceEnabled())
            log.trace("Failed to connect server " + key, e);
         NamingException ex = new CommunicationException("Failed to connect to server " + key);
         ex.setRootCause(e);
         throw ex;
      }
   }
View Full Code Here

      }
      catch (IOException e)
      {
         naming = null;
         removeServer(refEnv);
         NamingException ex = new CommunicationException();
         ex.setRootCause(e);
         throw ex;
      }
   }
View Full Code Here

      }
      catch (IOException e)
      {
         naming = null;
         removeServer(refEnv);
         NamingException ex = new CommunicationException();
         ex.setRootCause(e);
         throw ex;
      }
   }
View Full Code Here

      }
      catch (IOException e)
      {
         naming = null;
         removeServer(refEnv);
         NamingException ex = new CommunicationException();
         ex.setRootCause(e);
         throw ex;
      }
      catch (ClassNotFoundException e)
      {
         NamingException ex = new CommunicationException();
         ex.setRootCause(e);
         throw ex;
      }
   }
View Full Code Here

      }
      catch (IOException e)
      {
         naming = null;
         removeServer(refEnv);
         NamingException ex = new CommunicationException();
         ex.setRootCause(e);
         throw ex;
      }
   }
View Full Code Here

TOP

Related Classes of javax.naming.CommunicationException

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.