Package org.jboss.remoting

Examples of org.jboss.remoting.Home


    */
   protected void handleConnect()
   throws ConnectionFailedException
  
      int registryPort = getRegistryPort(locator);
      Home home = null;
      Exception savedException = null;
      Iterator it = getConnectHomes().iterator();
     
      while (it.hasNext())
      {
View Full Code Here


      InvokerLocator savedLocator = locator;
      String protocol = savedLocator.getProtocol();
      String path = savedLocator.getPath();
      Map params = savedLocator.getParameters();
      List homes = locator.getConnectHomeList();
      Home home = null;
     
      Iterator it = homes.iterator();
      while (it.hasNext())
      {
         try
View Full Code Here

         List homes = getHomes();
        
         if (connectHomes.size() != homes.size())
            throw new IOException("number of connect homes and bind homes must match in RMI transport");
        
         Home bindHome = (Home) homes.get(0);
         Home connectHome = (Home) connectHomes.get(0);
         initRMI(bindHome, connectHome);

         for (int i = 1; i < homes.size(); i++)
         {
            bindHome = (Home) homes.get(i);
View Full Code Here

         else
            it = newLocator.getConnectHomeList().iterator();
        
         while (it.hasNext())
         {
            Home h = (Home) it.next();
            if (host.equals(h.host))
            {
               port = h.port;
               newLocator.setHomeInUse(h);
               break;
View Full Code Here

      List homes = getConnectHomes();
     
      Iterator it = homes.iterator();
      while (it.hasNext())
      {
         Home home = null;
         try
         {
            home = (Home) it.next();
            locator = new InvokerLocator(protocol, home.host, home.port, path, params);
            invoke(new InvocationRequest(null, null, ServerInvoker.ECHO, null, null, null));
View Full Code Here

    */
   protected void handleConnect() throws ConnectionFailedException
   {
      if (InvokerLocator.MULTIHOME.equals(locator.getHost()))
      {
         Home home = getUsableAddress();
         if (home == null)
         {
            throw new ConnectionFailedException(this + " unable to find a usable address for: " + home);
         }
        
View Full Code Here

         else
            it = newLocator.getConnectHomeList().iterator();
        
         while (it.hasNext())
         {
            Home h = (Home) it.next();
            if (host.equals(h.host))
            {
               port = h.port;
               newLocator.setHomeInUse(h);
               break;
View Full Code Here

         for (int i = 0; i < protocolHandlers.size(); i++)
         {
            try
            {
               ProtocolHandler protocolHandler = (ProtocolHandler) protocolHandlers.get(i);
               Home home = (Home) getHomes().get(i);
               setProperty(protocolHandler, "address", home.host);
               setProperty(protocolHandler, "port", "" + home.port);

               //TODO: -TME - Should not have to hard set this every time.  Should
               // be a way to figure out if this is needed or not.
View Full Code Here

      {
         List homes = locator.getConnectHomeList();
         if (homes.size() == 1)
         {
            // Treat as in non MULTIHOME case.
            Home home = (Home) homes.iterator().next();
            addr = InetAddress.getByName(home.host);
            address = createServerAddress(addr, home.port);
         }
      }
   }
View Full Code Here

         }
         locator.setHomeInUse(home);
      }
      else
      {
         home = new Home(locator.getHost(), locator.getPort());
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.Home

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.