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();
   }


   /** 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();

      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

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

   {
      JBossConnectionFactory cf2 = (JBossConnectionFactory) ic[1].lookup("/ConnectionFactory");

      ClientClusteredConnectionFactoryDelegate clusterCF = (ClientClusteredConnectionFactoryDelegate)cf.getDelegate();
      ClientConnectionFactoryDelegate delegates[] = clusterCF.getDelegates();
      clusterCF.closeCallback(false);

      ServerManagement.kill(1);

      //Restart the server on the same place
      ServiceAttributeOverrides attr = new ServiceAttributeOverrides();
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(false);
     
      // Validates if closeCallback is working

      assertEquals(0, getCountOnServer(0, cfDelegate.getUniqueName()));
      assertEquals(0, getCountOnServer(1, cfDelegate.getUniqueName()));
View Full Code Here

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()

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

      clusterDelegate.closeCallback();
   }


   /** 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();

      ServerManagement.kill(1);

      Connection conn = null;

View Full Code Here

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

      ClientClusteredConnectionFactoryDelegate cfdelegate = (ClientClusteredConnectionFactoryDelegate)localcf.getDelegate();

      ((ClientClusteredConnectionFactoryDelegate)cf.getDelegate()).closeCallback(false);

      // After this, the CF won't get any callbacks
      cfdelegate.closeCallback(false);

      Connection conn = createConnectionOnServer(localcf, 1);

      try
      {
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.