Package org.jboss.remoting

Examples of org.jboss.remoting.ConnectionFailedException


                  }
               }
            }
           
            if (sockets.isEmpty())
               throw new ConnectionFailedException("Timed out trying to create control socket");

            Iterator it = sockets.iterator();
            controlSocket = (Socket) it.next();
            it.remove();
            try
            {
               controlOutputStream = controlSocket.getOutputStream();
            }
            catch (IOException e1)
            {
               throw new ConnectionFailedException("Unable to get control socket output stream");
            }
            log.debug("got control socket( " + listenerId + "): " + controlSocket);
            pingTimerTask = new PingTimerTask(this);

            synchronized (timerLock)
View Full Code Here


            }
         }
      }
      else
      {
         throw new ConnectionFailedException("Error invoking on server because " +
                                             "no local server to call upon.");
      }

      return ret;
   }
View Full Code Here

            }
         }
      }
      else
      {
         throw new ConnectionFailedException("Error invoking on server because " +
                                             "no local server to call upon.");
      }

      return ret;
   }
View Full Code Here

      if (InvokerLocator.MULTIHOME.equals(locator.getHost()))
      {
         Home home = getUsableAddress();
         if (home == null)
         {
            throw new ConnectionFailedException(this + " unable to find a usable address for: " + home);
         }
        
         String protocol = locator.getProtocol();
         String path = locator.getPath();
         Map params = locator.getParameters();
View Full Code Here

      }

      if(server == null)
      {
         // if the reference is still null, return null
         throw new ConnectionFailedException("Couldn't find server at: " + identity);
      }
      else
      {
         return server;
      }
View Full Code Here

         catch(Throwable ex)
         {
            log.debug("Error connecting ... ", ex);
         }
      }
      throw new ConnectionFailedException("No transport/connection available to connect to: " + identity);
   }
View Full Code Here

      if (InvokerLocator.MULTIHOME.equals(locator.getHost()))
      {
         home = getUsableAddress(locator);
         if (home == null)
         {
            throw new ConnectionFailedException(this + " unable to find a usable address for: " + home);
         }
         locator.setHomeInUse(home);
      }
      else
      {
View Full Code Here

         secondaryLocator = getSecondaryLocator();
      }
      catch (Throwable e)
      {
         log.error("Unable to retrieve address/port of secondary server socket", e);
         throw new ConnectionFailedException(e.getMessage());
      }
   }
View Full Code Here

                  }
               }
            }
           
            if (sockets.isEmpty())
               throw new ConnectionFailedException("Timed out trying to create control socket");

            Iterator it = sockets.iterator();
            controlSocket = (Socket) it.next();
            it.remove();
            try
            {
               controlOutputStream = controlSocket.getOutputStream();
            }
            catch (IOException e1)
            {
               throw new ConnectionFailedException("Unable to get control socket output stream");
            }
            log.debug("got control socket( " + listenerId + "): " + controlSocket);

            if (pingFrequency > 0)
            {
View Full Code Here

      if (InvokerLocator.MULTIHOME.equals(locator.getHost()))
      {
         Home home = getUsableAddress();
         if (home == null)
         {
            throw new ConnectionFailedException(this + " unable to find a usable address for: " + home);
         }
        
         String protocol = locator.getProtocol();
         String path = locator.getPath();
         Map params = locator.getParameters();
View Full Code Here

TOP

Related Classes of org.jboss.remoting.ConnectionFailedException

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.