public void remove(Destination destination) { if (brokerService == null) { throw new IllegalArgumentException("No brokerService injected!"); } ActiveMQDestination topic = getMirrorTopic(destination.getActiveMQDestination()); if (topic != null) { try { brokerService.removeDestination(topic); } catch (Exception e) { LOG.error("Failed to remove mirror destination for {}", destination, e); } } }
public void removeQueue(String queueName) { try { ActiveMQQueue destination = new ActiveMQQueue(queueName); ConnectionContext connectionContext = BrokerSupport.getConnectionContext(broker.getBroker()); Destination brokerDestination = broker.getDestination(destination); List<Subscription> consumers = brokerDestination.getConsumers(); for (Subscription consumer : consumers) { consumer.remove(connectionContext, brokerDestination); brokerDestination.removeSubscription(connectionContext, consumer, 0); } broker.getBroker().removeDestination(connectionContext, destination, 1000); broker.removeDestination(destination); } catch (Exception e) { throw bomb(e); } }
Object replyDestination = TestUtils.getPropertyValue(context.getBean("jog"), "handler.replyDestination"); if (replyDestination != null) { broker.removeDestination((ActiveMQDestination) replyDestination);
public void remove(Destination destination) { if (brokerService == null) { throw new IllegalArgumentException("No brokerService injected!"); } ActiveMQDestination topic = getMirrorTopic(destination.getActiveMQDestination()); if (topic != null) { try { brokerService.removeDestination(topic); } catch (Exception e) { LOG.error("Failed to remove mirror destination for {}", destination, e); } } }
public void remove(Destination destination) { if (brokerService == null) { throw new IllegalArgumentException("No brokerService injected!"); } ActiveMQDestination topic = getMirrorTopic(destination.getActiveMQDestination()); if (topic != null) { try { brokerService.removeDestination(topic); } catch (Exception e) { LOG.error("Failed to remove mirror destination for {}", destination, e); } } }
public void remove(Destination destination) { if (brokerService == null) { throw new IllegalArgumentException("No brokerService injected!"); } ActiveMQDestination topic = getMirrorTopic(destination.getActiveMQDestination()); if (topic != null) { try { brokerService.removeDestination(topic); } catch (Exception e) { LOG.error("Failed to remove mirror destination for " + destination + ". Reason: " + e,e); } } }
public void remove(Destination destination) { if (brokerService == null) { throw new IllegalArgumentException("No brokerService injected!"); } ActiveMQDestination topic = getMirrorTopic(destination.getActiveMQDestination()); if (topic != null) { try { brokerService.removeDestination(topic); } catch (Exception e) { LOG.error("Failed to remove mirror destination for {}", destination, e); } } }