Package org.jboss.remoting

Examples of org.jboss.remoting.Client.invoke()


         client.connect();

         JMSRemotingConnection.
            addInvokerCallbackHandler("test", client, null, serverLocator, callbackHandler);

         client.invoke(new OnewayCallbackTrigger("blip"));

         // make sure we get the callback

         Callback c = callbackHandler.getNextCallback(3000);
View Full Code Here


         Thread.sleep(sleepTime);

         log.debug("woke up");

         client.invoke(new OnewayCallbackTrigger("blop"));

         // make sure we get the callback

         c = callbackHandler.getNextCallback(3000);
View Full Code Here

         log.info("added listener");

         // sleep for twice the timeout, to be sure
         long sleepTime = ServerInvoker.DEFAULT_TIMEOUT_PERIOD + 60000;

         client.invoke(new OnewayCallbackTrigger("blip", new long[] { 0, sleepTime + 10000 }));

         log.info("sent invocation");

         // make sure we get the callback
View Full Code Here

            if (trace)
            {
               log.trace("Making invocation on " + clientInstance.getInvoker().getLocator());
            }
           
            response = clientInstance.invoke(invocation, null);

            HARMIResponse haResponse = null;

            if(response instanceof Exception)
            {
View Full Code Here

         ConnectionFactoryCreateConnectionDelegateRequest req =
            new ConnectionFactoryCreateConnectionDelegateRequest(id, v,
                                                                 remotingSessionId, clientVMId,
                                                                 username, password, failedNodeID);
          
         ResponseSupport rs = (ResponseSupport)client.invoke(req, null);
        
         res = (CreateConnectionResult)rs.getResponse();
      }
      catch (Throwable t)
      {
View Full Code Here

      Client client = new Client(clientLocator, clientConfig);
      client.connect();
      log.info("client is connected");
     
      // Test invocations.
      assertEquals("abc", client.invoke("abc"));
      log.info("first invocation succeeded");
      assertEquals("lmn", client.invoke("lmn"));
      log.info("second invocation succeeded");
      assertEquals("xyz", client.invoke("xyz"));
      log.info("third invocation succeeded");
View Full Code Here

      log.info("client is connected");
     
      // Test invocations.
      assertEquals("abc", client.invoke("abc"));
      log.info("first invocation succeeded");
      assertEquals("lmn", client.invoke("lmn"));
      log.info("second invocation succeeded");
      assertEquals("xyz", client.invoke("xyz"));
      log.info("third invocation succeeded");
      assertEquals(1, TestServerThread.threadCounter);
     
View Full Code Here

      // Test invocations.
      assertEquals("abc", client.invoke("abc"));
      log.info("first invocation succeeded");
      assertEquals("lmn", client.invoke("lmn"));
      log.info("second invocation succeeded");
      assertEquals("xyz", client.invoke("xyz"));
      log.info("third invocation succeeded");
      assertEquals(1, TestServerThread.threadCounter);
     
      client.disconnect();
      shutdownServer();
View Full Code Here

      Client client = new Client(clientLocator, clientConfig);
      client.connect();
      log.info("client is connected");
     
      // Test invocations.
      assertEquals("abc", client.invoke("abc"));
      log.info("first invocation succeeded");
      assertEquals("lmn", client.invoke("lmn"));
      log.info("second invocation succeeded");
      assertEquals("xyz", client.invoke("xyz"));
      log.info("third invocation succeeded");
View Full Code Here

      log.info("client is connected");
     
      // Test invocations.
      assertEquals("abc", client.invoke("abc"));
      log.info("first invocation succeeded");
      assertEquals("lmn", client.invoke("lmn"));
      log.info("second invocation succeeded");
      assertEquals("xyz", client.invoke("xyz"));
      log.info("third invocation succeeded");
      assertEquals(1, TestServerThread.threadCounter);
     
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.