Examples of closeCallback()


Examples of org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.closeCallback()

     
      assertEquals(1, clusterDelegate.getDelegates().length);
      TopologyResult topology = clusterDelegate.getTopology();
      assertEquals(1, topology.getDelegates().length);

      clusterDelegate.closeCallback(false);
   }


   /** This method is to make sure CFs are being released on GC, validating if the callbacks
    *  are not making any hard references.
View Full Code Here

Examples of org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.closeCallback()

    *  This test will disable CF callback for a connection and validate if hoping is working*/
   public void testNoUpdateCaptured() throws Exception
   {
      JBossConnectionFactory cfNoCallback = (JBossConnectionFactory)ic[0].lookup("/ClusteredConnectionFactory");
      ClientClusteredConnectionFactoryDelegate noCallbackDelegate =  (ClientClusteredConnectionFactoryDelegate )cfNoCallback.getDelegate();
      noCallbackDelegate.closeCallback(false);

      ServerManagement.kill(1);

      Connection conn = null;

View Full Code Here

Examples of org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.closeCallback()

      log.info("(Before)Server1 - " + getCountOnServer(1, cfDelegate.getUniqueName()));
     
      assertEquals(1, getCountOnServer(0, cfDelegate.getUniqueName()));
      assertEquals(1, getCountOnServer(1, cfDelegate.getUniqueName()));
     
      cfDelegate.closeCallback();
     
      // Validates if closeCallback is working

      assertEquals(0, getCountOnServer(0, cfDelegate.getUniqueName()));
      assertEquals(0, getCountOnServer(1, cfDelegate.getUniqueName()));
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.