Examples of destroyConnectionFactory()


Examples of org.hornetq.api.jms.management.JMSServerControl.destroyConnectionFactory()

      assertEquals(1, cf.getMaxRetryInterval());
      assertEquals(1, cf.getReconnectAttempts());
      assertEquals(true, cf.isFailoverOnInitialConnection());
      assertEquals("tst", cf.getGroupID());
     
      control.destroyConnectionFactory("test");
     
      ObjectNameBuilder nameBuilder = ObjectNameBuilder.create(ConfigurationImpl.DEFAULT_JMX_DOMAIN);
      assertFalse(mbeanServer.isRegistered(nameBuilder.getConnectionFactoryObjectName("test")));
     
      stopServer();
View Full Code Here

Examples of org.hornetq.api.jms.management.JMSServerControl.destroyConnectionFactory()

        ServiceController<?> hqService = context.getServiceRegistry(false).getService(hqServiceName);
        HornetQServer hqServer = HornetQServer.class.cast(hqService.getValue());
        JMSServerControl control = JMSServerControl.class.cast(hqServer.getManagementService().getResource(ResourceNames.JMS_SERVER));
        if (control != null) {
            try {
                control.destroyConnectionFactory(name);
            } catch (Exception e) {
                throw new OperationFailedException(e);
            }
        }    }
View Full Code Here

Examples of org.hornetq.api.jms.management.JMSServerControl.destroyConnectionFactory()

      assertEquals(1, cf.getMaxRetryInterval());
      assertEquals(1, cf.getReconnectAttempts());
      assertEquals(true, cf.isFailoverOnInitialConnection());
      assertEquals("tst", cf.getGroupID());
     
      control.destroyConnectionFactory("test");
     
      ObjectNameBuilder nameBuilder = ObjectNameBuilder.create(ConfigurationImpl.DEFAULT_JMX_DOMAIN);
      assertFalse(mbeanServer.isRegistered(nameBuilder.getConnectionFactoryObjectName("test")));
     
      stopServer();
View Full Code Here

Examples of org.hornetq.api.jms.management.JMSServerControl.destroyConnectionFactory()

      assertEquals(1, cf.getMaxRetryInterval());
      assertEquals(1, cf.getReconnectAttempts());
      assertEquals(true, cf.isFailoverOnInitialConnection());
      assertEquals("tst", cf.getGroupID());
     
      control.destroyConnectionFactory("test");
     
      ObjectNameBuilder nameBuilder = ObjectNameBuilder.create(ConfigurationImpl.DEFAULT_JMX_DOMAIN);
      assertFalse(mbeanServer.isRegistered(nameBuilder.getConnectionFactoryObjectName("test")));
     
      stopServer();
View Full Code Here

Examples of org.hornetq.api.jms.management.JMSServerControl.destroyConnectionFactory()

      assertEquals(1, cf.getMaxRetryInterval());
      assertEquals(1, cf.getReconnectAttempts());
      assertEquals(true, cf.isFailoverOnInitialConnection());
      assertEquals("tst", cf.getGroupID());

      control.destroyConnectionFactory("test");

      ObjectNameBuilder nameBuilder = ObjectNameBuilder.create(ConfigurationImpl.DEFAULT_JMX_DOMAIN);
      assertFalse(mbeanServer.isRegistered(nameBuilder.getConnectionFactoryObjectName("test")));

      stopServer();
View Full Code Here

Examples of org.hornetq.jms.server.JMSServerManager.destroyConnectionFactory()

    /** {@inheritDoc} */
    public synchronized void stop(StopContext context) {
        final JMSServerManager jmsManager = jmsServer.getValue();
        try {
            jmsManager.destroyConnectionFactory(name);
        } catch (Exception e) {
            Logger.getLogger("org.jboss.messaging").warnf(e ,"failed to destroy connection-factory: %s", name);
        }
    }

View Full Code Here

Examples of org.hornetq.jms.server.JMSServerManager.destroyConnectionFactory()

    /** {@inheritDoc} */
    public synchronized void stop(StopContext context) {
        final JMSServerManager jmsManager = jmsServer.getValue();
        try {
            jmsManager.destroyConnectionFactory(name);
        } catch (Exception e) {
            MESSAGING_LOGGER.failedToDestroy("connection-factory", name);
        }
    }

View Full Code Here

Examples of org.hornetq.jms.server.JMSServerManager.destroyConnectionFactory()

        executorInjector.getValue().execute(new Runnable() {
            @Override
            public void run() {
                try {
                    jmsManager.destroyConnectionFactory(name);
                } catch (Throwable e) {
                    MESSAGING_LOGGER.failedToDestroy("connection-factory", name);
                }
                context.complete();
            }
View Full Code Here

Examples of org.hornetq.jms.server.JMSServerManager.destroyConnectionFactory()

        executorInjector.getValue().execute(new Runnable() {
            @Override
            public void run() {
                try {
                    jmsManager.destroyConnectionFactory(name);
                } catch (Throwable e) {
                    MESSAGING_LOGGER.failedToDestroy("connection-factory", name);
                }
                context.complete();
            }
View Full Code Here

Examples of org.hornetq.jms.server.JMSServerManager.destroyConnectionFactory()

        final JMSServerManager jmsManager = jmsServer.getValue();
        final Runnable task = new Runnable() {
            @Override
            public void run() {
                try {
                    jmsManager.destroyConnectionFactory(name);
                } catch (Throwable e) {
                    MESSAGING_LOGGER.failedToDestroy("connection-factory", name);
                }
                context.complete();
            }
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.