Examples of removeConnectionListener()


Examples of org.jboss.jms.client.remoting.JMSRemotingConnection.removeConnectionListener()

         // we "cripple" the remoting connection by removing ConnectionListener. This way, failures
         // cannot be "cleanly" detected by the client-side pinger, and we'll fail on an invocation
         JMSRemotingConnection rc = ((ClientConnectionDelegate)((JBossConnection)conn).
            getDelegate()).getRemotingConnection();
         rc.removeConnectionListener();

         SimpleFailoverListener failoverListener = new SimpleFailoverListener();
         ((JBossConnection)conn).registerFailoverListener(failoverListener);

         // poison the server
View Full Code Here

Examples of org.jboss.jms.client.remoting.JMSRemotingConnection.removeConnectionListener()

         assertEquals(1, ((JBossConnection)conn1).getServerID());

         JMSRemotingConnection rc = ((ClientConnectionDelegate)((JBossConnection)conn1).
            getDelegate()).getRemotingConnection();
         rc.removeConnectionListener();

         Session session1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE);

         MessageConsumer consumer = session1.createConsumer(queue[1]);
View Full Code Here

Examples of org.jboss.jms.client.remoting.JMSRemotingConnection.removeConnectionListener()

         assertEquals(1, ((JBossConnection)conn1).getServerID());

         JMSRemotingConnection rc = ((ClientConnectionDelegate)((JBossConnection)conn1).
            getDelegate()).getRemotingConnection();
         rc.removeConnectionListener();

         Session session1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE);

         QueueBrowser browser = session1.createBrowser(queue[1]);
View Full Code Here

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

     
      // Verify new LeasePinger is created if Client reconnects.
      client.connect(clientConnectionListener, null);
      assertNotSame(leasePinger1, field.get(client.getInvoker()));
     
      client.removeConnectionListener(clientConnectionListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

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

      assertTrue(clientConnectionListener2.throwable instanceof Exception);
      assertEquals("Could not connect to server!", clientConnectionListener2.throwable.getMessage());
     
      client1.removeConnectionListener(clientConnectionListener1);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

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

      assertTrue(clientConnectionListener2.throwable instanceof Exception);
      assertEquals("Could not connect to server!", clientConnectionListener2.throwable.getMessage());
     
      client1.removeConnectionListener(clientConnectionListener1);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

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

      assertEquals("Could not connect to server!", clientConnectionListener2b.throwable.getMessage());
     
      client1.removeConnectionListener(clientConnectionListener1a);
      client1.removeConnectionListener(clientConnectionListener1b);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2a);
      client2.removeConnectionListener(clientConnectionListener2b);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
View Full Code Here

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

     
      client1.removeConnectionListener(clientConnectionListener1a);
      client1.removeConnectionListener(clientConnectionListener1b);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2a);
      client2.removeConnectionListener(clientConnectionListener2b);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

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

      assertTrue(serverConnectionListener.throwable instanceof ClientDisconnectedException);
      assertTrue(clientConnectionListener.notified);
      assertTrue(clientConnectionListener.throwable instanceof Exception);
      assertEquals("Could not connect to server!", ((Exception)clientConnectionListener.throwable).getMessage());
     
      client.removeConnectionListener(clientConnectionListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

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

      assertTrue(serverConnectionListener.throwable instanceof ClientDisconnectedException);
      assertTrue(clientConnectionListener.notified);
      assertTrue(clientConnectionListener.throwable instanceof Exception);
      assertEquals("Could not connect to server!", ((Exception)clientConnectionListener.throwable).getMessage());
     
      client.removeConnectionListener(clientConnectionListener);
      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.