Examples of handleClientFailure()


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

            log.debug(this + " failed to handle callback", e);

            ServerConnectionEndpoint sce = sessionEndpoint.getConnectionEndpoint();
            ConnectionManager cm = sce.getServerPeer().getConnectionManager();

            cm.handleClientFailure(sce.getRemotingClientSessionID(), false);

            // we're practically cut, from connection down

            return null;
         }
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

        
         String sessId2 = (String)entry.getKey();
        
         //Simulate failure of connection
        
         cm.handleClientFailure(sessId1);
 
         jmsClients = cm.getClients();
         assertEquals(1, jmsClients.size());       
        
         cm.handleClientFailure(sessId2);
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

         cm.handleClientFailure(sessId1);
 
         jmsClients = cm.getClients();
         assertEquals(1, jmsClients.size());       
        
         cm.handleClientFailure(sessId2);
        
         jmsClients = cm.getClients();
         assertEquals(0, jmsClients.size());  
      }
      finally
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

     
     
      assertEquals(2, cfEnd1.getCallbackHandlers().size());
      assertEquals(2, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session1");
     
      assertEquals(1, cfEnd1.getCallbackHandlers().size());
      assertEquals(2, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session3");
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

      cm.handleClientFailure("Session1");
     
      assertEquals(1, cfEnd1.getCallbackHandlers().size());
      assertEquals(2, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session3");
      assertEquals(1, cfEnd1.getCallbackHandlers().size());
      assertEquals(1, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session2");
      assertEquals(0, cfEnd1.getCallbackHandlers().size());
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

     
      cm.handleClientFailure("Session3");
      assertEquals(1, cfEnd1.getCallbackHandlers().size());
      assertEquals(1, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session2");
      assertEquals(0, cfEnd1.getCallbackHandlers().size());
      assertEquals(1, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session4");
      assertEquals(0, cfEnd1.getCallbackHandlers().size());
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

     
      cm.handleClientFailure("Session2");
      assertEquals(0, cfEnd1.getCallbackHandlers().size());
      assertEquals(1, cfEnd2.getCallbackHandlers().size());
     
      cm.handleClientFailure("Session4");
      assertEquals(0, cfEnd1.getCallbackHandlers().size());
      assertEquals(0, cfEnd2.getCallbackHandlers().size());
   }
  
  
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

      assertEquals(e5, r2);
      assertFalse(e5.isClosed());

      assertFalse(cm.containsRemotingSession("sessionid5"));

      cm.handleClientFailure("sessionid4");

      assertNull(cm.unregisterConnection("jvm2", "sessionid4"));
      ConnectionEndpoint r3 = cm.unregisterConnection("jvm2", "sessionid3");
      assertEquals(e3, r3);
      assertFalse(e3.isClosed());
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

        
        entry = (Map.Entry)iter.next();
       
        //Simulate failure of connection
       
        cm.handleClientFailure(sessId1, true);
       
        //both connections should be shut
       
        jmsClients = cm.getClients();
        assertEquals(0, jmsClients.size());       
View Full Code Here

Examples of org.jboss.jms.server.connectionmanager.SimpleConnectionManager.handleClientFailure()

      assertEquals(e5, r2);
      assertFalse(e5.isClosed());

      assertFalse(cm.containsRemotingSession("sessionid5"));

      cm.handleClientFailure("sessionid4", true);

      assertNull(cm.unregisterConnection("jvm2", "sessionid4"));
      assertNull(cm.unregisterConnection("jvm2", "sessionid3"));

      assertFalse(cm.containsRemotingSession("sessionid4"));
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.