Examples of destroyQueue()


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

      control.createQueue(queueName, queueJNDIBinding);

      UnitTestCase.checkBinding(context, queueJNDIBinding);
      checkResource(ObjectNameBuilder.DEFAULT.getJMSQueueObjectName(queueName));

      control.destroyQueue(queueName);

      UnitTestCase.checkNoBinding(context, queueJNDIBinding);
      checkNoResource(ObjectNameBuilder.DEFAULT.getJMSQueueObjectName(queueName));

      Assert.assertNull(fakeJMSStorageManager.destinationMap.get(queueName));
View Full Code Here

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

      String[] names = control.getQueueNames();
      Assert.assertEquals(1, names.length);
      Assert.assertEquals(queueName, names[0]);

      control.destroyQueue(queueName);

      Assert.assertEquals(0, control.getQueueNames().length);
   }

   public void testCreateTopic() throws Exception
View Full Code Here

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

      control.createQueue(queueName, queueJNDIBinding);

      UnitTestCase.checkBinding(context, queueJNDIBinding);
      checkResource(ObjectNameBuilder.DEFAULT.getJMSQueueObjectName(queueName));

      control.destroyQueue(queueName);

      UnitTestCase.checkNoBinding(context, queueJNDIBinding);
      checkNoResource(ObjectNameBuilder.DEFAULT.getJMSQueueObjectName(queueName));

      Assert.assertNull(fakeJMSStorageManager.destinationMap.get(queueName));
View Full Code Here

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

      String[] names = control.getQueueNames();
      Assert.assertEquals(1, names.length);
      Assert.assertEquals(queueName, names[0]);

      control.destroyQueue(queueName);

      Assert.assertEquals(0, control.getQueueNames().length);
   }

   public void testCreateTopic() throws Exception
View Full Code Here

Examples of org.hornetq.core.server.HornetQServer.destroyQueue()

    /** {@inheritDoc} */
    @Override
    public synchronized void stop(StopContext context) {
        try {
            final HornetQServer hornetQService = this.hornetQService.getValue();
            hornetQService.destroyQueue(new SimpleString(queueConfiguration.getName()), null);
        } catch(Exception e) {
            MESSAGING_LOGGER.failedToDestroy("queue", queueConfiguration.getName());
        }
    }

View Full Code Here

Examples of org.hornetq.core.server.HornetQServer.destroyQueue()

    /** {@inheritDoc} */
    @Override
    public synchronized void stop(StopContext context) {
        try {
            final HornetQServer hornetQService = this.hornetQService.getValue();
            hornetQService.destroyQueue(new SimpleString(queueConfiguration.getName()), null, false);
        } catch(Exception e) {
            MESSAGING_LOGGER.failedToDestroy("queue", queueConfiguration.getName());
        }
    }

View Full Code Here

Examples of org.hornetq.core.server.HornetQServer.destroyQueue()

    /** {@inheritDoc} */
    @Override
    public synchronized void stop(StopContext context) {
        try {
            final HornetQServer hornetQService = this.hornetQService.getValue();
            hornetQService.destroyQueue(new SimpleString(queueName), null);
        } catch(Exception e) {
            Logger.getLogger("org.jboss.messaging").warnf(e, "failed to destroy queue (%s)", queueName);
        }
    }

View Full Code Here

Examples of org.hornetq.core.server.HornetQServer.destroyQueue()

    /** {@inheritDoc} */
    public synchronized void stop(StopContext context) {
        try {
            final HornetQServer hornetQService = this.hornetQService.getValue();
            hornetQService.destroyQueue(new SimpleString(queueName), null);
        } catch(Exception e) {
            Logger.getLogger("org.jboss.messaging").warnf(e, "failed to destroy queue (%s)", queueName);
        }
    }

View Full Code Here

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

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

View Full Code Here

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

    /** {@inheritDoc} */
    public synchronized void stop(StopContext context) {
        final JMSServerManager jmsManager = jmsServer.getValue();
        try {
            jmsManager.destroyQueue(queueName);
        } catch (Exception e) {
            Logger.getLogger("org.jboss.messaging").warnf(e ,"failed to destroy jms queue: %s", queueName);
        }
        // FIXME This shouldn't be here
        for(final String jndiBinding : jndi) {
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.