Package org.jboss.remoting

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


               {
                  log.info("client.invoke(\"test\") failed (that's OK)");
               }
              
               log.info("calling client.removeListener()");
               client.removeListener(callbackHandler);
               removeListener.done = true;
               log.info("returned from client.removeListener()");
            }
            catch (Throwable e)
            {
View Full Code Here


      client.invoke("call back " + value2);

      assertEquals(2, callbacks.size());
      callbacks.clear();

      client.removeListener(callbackHandler1);

      client.invoke("call back " + value3);

      assertEquals(1, callbacks.size());
      callbacks.clear();
View Full Code Here

      client.invoke("call back " + value3);

      assertEquals(1, callbacks.size());
      callbacks.clear();

      client.removeListener(callbackHandler2);

      connector.stop();
      callbackConnector.stop();

      connector.destroy();
View Full Code Here

         metadata.put(COUNTER, count);
         Object response = client.invoke(INVOCATION_TEST, metadata);
         assertTrue(response.equals(count));
      }
     
      client.removeListener(callbackHandler);
      client.disconnect();
   }
  
  
   public void testAlternatingInvocationsAndCallbacks() throws Throwable
View Full Code Here

         client.invoke(CALLBACK_TEST);
         assertTrue(response.equals(count));
      }
     
      assertEquals(invocationCount, callbackHandler.callbackCounter);
      client.removeListener(callbackHandler);
      client.disconnect();
   }
  
  
   public void testPullCallbacks() throws Throwable
View Full Code Here

      Field field = BisocketClientInvoker.class.getDeclaredField("listenerIdToClientInvokerMap");
      field.setAccessible(true);
      Map listenerIdToClientInvokerMap = (Map) field.get(client.getInvoker());
      assertEquals(0, listenerIdToClientInvokerMap.size());
     
      client.removeListener(callbackHandler);
      client.disconnect();
   }
  
  
   public void testMaxSocketPoolSize() throws Throwable
View Full Code Here

      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, false, CallbackPoller.DEFAULT_POLL_PERIOD, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, false, CallbackPoller.DEFAULT_POLL_PERIOD, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, false, CallbackPoller.DEFAULT_POLL_PERIOD, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, false, CallbackPoller.DEFAULT_POLL_PERIOD, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
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.