Package org.jboss.remoting

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


        
         cl.connect();
        
         for (int j = 0; j < 100; j++)
         {
            cl.invoke("pickled onions");
         }
        
         cl.disconnect();
      }
    
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

         {
            for (int i = 0; i < 5000; i++)
            {
               Client cl = new Client(locator);
               cl.connect();
               cl.invoke("aardvark");
               cl.disconnect();
            }
            synchronized (o)
            {
               o.notify();
View Full Code Here

         client.connect();

         client.addListener(callbackHandler, null, null, true);

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

         // make sure we get the callback

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

         log.info("first ping is done, send a long running invocation");

         // in 2.2.0.Alpha6 the client will send the invocation over a socket configured to time
         // out after 1000 ms, so this will throw java.net.SocketTimeoutException

         client.invoke(new Long(5000));

         Thread.sleep(7000);
      }
      finally
      {
View Full Code Here

            public void run()
            {
               try
               {
                  // this invocation will take 5 secs to complete
                  clientCopy.invoke(new Long(5000));
               }
               catch(Throwable t)
               {
                  log.error("invocation failed", t);
               }
View Full Code Here

      Client client = new Client(serverLocator, RemotingTestSubsystemService.SUBSYSTEM_LABEL);

      client.connect();

      client.invoke("blah");

      assertEquals("blah", RemotingTestSubsystemService.
         getNextInvocationFromServer(subsystemService, 2000).getParameter());

      ServerManagement.kill(0);
View Full Code Here

      // send another invocation

      try
      {
         client.invoke("bloh");
         fail("This should have failed!");
      }
      catch(CannotConnectException e)
      {
         // This happens for HTTP clients - if the client throws CannotConnectException, we're fine,
View Full Code Here

      // send the first invocation

      try
      {
         client.invoke("bleh");
         fail("This should have failed!");
      }
      catch(CannotConnectException e)
      {
         // if the client throws CannotConnectException, we're fine, this is our
View Full Code Here

      // the client is in a "broken" state, an invocation on it should fail

      try
      {
         client.invoke("bluh");
         fail("this should've failed!");
      }
      catch(CannotConnectException e)
      {
         // this is what a broken client is supposed to throw.
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.