Package org.jboss.jms.server

Examples of org.jboss.jms.server.ConnectionManager.containsRemotingSession()


     
      String remotingSessionId = (String)remoteServer.executeCommand(command);
     
      ConnectionManager cm = localServer.getServerPeer().getConnectionManager();
           
      assertTrue(cm.containsRemotingSession(remotingSessionId));
     
      // Now we should have a client connection from the remote server to the local server
     
      remoteServer.kill();
      log.trace("killed remote server");
View Full Code Here


       
      // Wait for connection resources to be cleared up
      Thread.sleep(15000);
          
      // See if we still have a connection with this id
      assertTrue(cm.containsRemotingSession(remotingSessionId));
   }
  
  
   // Package protected ---------------------------------------------
  
View Full Code Here

      // we have removed the exception listener so the server side resouces shouldn't be cleared up

      log.info("sleeping for 1 min ...");
      Thread.sleep(60000);
                
      assertTrue(cm.containsRemotingSession(remotingSessionId));
     
      // Now we send a message which should prompt delivery to the dead consumer causing
      // an exception which should cause connection cleanup
                 
      Connection conn = cf.createConnection();
View Full Code Here

      prod.send(sess.createMessage());

      log.info("sleeping for 45 secs ...");
      Thread.sleep(45000);
     
      assertFalse(cm.containsRemotingSession(remotingSessionId));

      // make sure the message is still in queue

      conn = cf.createConnection();
      conn.start();
View Full Code Here

     
      String remotingSessionId = (String)remoteServer.executeCommand(command);
     
      ConnectionManager cm = localServer.getServerPeer().getConnectionManager();
           
      assertTrue(cm.containsRemotingSession(remotingSessionId));
     
      // Now we should have a client connection from the remote server to the local server
     
      ServerManagement.kill(0);
View Full Code Here

     
      //Wait for connection resources to be cleared up
      Thread.sleep(wait);
          
      // See if we still have a connection with this id
      assertEquals(contains, cm.containsRemotingSession(remotingSessionId));
   }
     
   /**
    * Test that when a remote jms client crashes, server side resources for connections are
    * cleaned-up.
 
View Full Code Here

           
      log.info("server(0) = " + remotingSessionId[0]);
      log.info("server(1) = " + remotingSessionId[1]);
      log.info("we have = " + ((SimpleConnectionManager)cm).getClients().size() + " clients registered on SimpleconnectionManager");
     
      assertFalse(cm.containsRemotingSession(remotingSessionId[0]));
      assertTrue(cm.containsRemotingSession(remotingSessionId[1]));
     
      ServerManagement.kill(0);
     
      // Now we should have a client connection from the remote server to the local server
View Full Code Here

      log.info("server(0) = " + remotingSessionId[0]);
      log.info("server(1) = " + remotingSessionId[1]);
      log.info("we have = " + ((SimpleConnectionManager)cm).getClients().size() + " clients registered on SimpleconnectionManager");
     
      assertFalse(cm.containsRemotingSession(remotingSessionId[0]));
      assertTrue(cm.containsRemotingSession(remotingSessionId[1]));
     
      ServerManagement.kill(0);
     
      // Now we should have a client connection from the remote server to the local server
     
View Full Code Here

      Thread.sleep(8000);
          
      // See if we still have a connection with this id
     
      //Connection state should have been cleared up by now
      assertFalse(cm.containsRemotingSession(remotingSessionId[0]));
      assertFalse(cm.containsRemotingSession(remotingSessionId[1]));
     
      log.info("Servers = " + ((SimpleConnectionManager)cm).getClients().size());
     
      assertEquals(0,((SimpleConnectionManager)cm).getClients().size());
View Full Code Here

          
      // See if we still have a connection with this id
     
      //Connection state should have been cleared up by now
      assertFalse(cm.containsRemotingSession(remotingSessionId[0]));
      assertFalse(cm.containsRemotingSession(remotingSessionId[1]));
     
      log.info("Servers = " + ((SimpleConnectionManager)cm).getClients().size());
     
      assertEquals(0,((SimpleConnectionManager)cm).getClients().size());
   }
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.