@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeDestination(Destination dest) { ActiveMQDestination destination = dest.getActiveMQDestination(); if (!destination.isTemporary()) { if (destination.isQueue()) { persistenceAdapter.removeQueueMessageStore((ActiveMQQueue) destination); } else if (!AdvisorySupport.isAdvisoryTopic(destination)) { persistenceAdapter.removeTopicMessageStore((ActiveMQTopic) destination); } } }
public void testAddRemoveConsumerDest() throws Exception { ActiveMQQueue consumerQ = new ActiveMQQueue("Consumer.A.VirtualTopicTest"); MessageStore ms = pa.createQueueMessageStore(consumerQ); pa.removeQueueMessageStore(consumerQ); assertFalse(pa.getDestinations().contains(consumerQ)); }
@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeQueueMessageStore(ActiveMQQueue destination) { PersistenceAdapter adapter = null; try { adapter = getMatchingPersistenceAdapter(destination); } catch (IOException e) { throw new RuntimeException(e); } if (adapter instanceof PersistenceAdapter && adapter.getDestinations().isEmpty()) { adapter.removeQueueMessageStore(destination); removeMessageStore(adapter, destination); destinationMap.remove(destination, adapter); } }
@Override public void removeDestination(Destination dest) { ActiveMQDestination destination = dest.getActiveMQDestination(); if (!destination.isTemporary()) { if (destination.isQueue()) { persistenceAdapter.removeQueueMessageStore((ActiveMQQueue) destination); } else if (!AdvisorySupport.isAdvisoryTopic(destination)) { persistenceAdapter.removeTopicMessageStore((ActiveMQTopic) destination); } } }
@Override public void removeDestination(Destination dest) { ActiveMQDestination destination = dest.getActiveMQDestination(); if (!destination.isTemporary()) { if (destination.isQueue()) { persistenceAdapter.removeQueueMessageStore((ActiveMQQueue) destination); } else if (!AdvisorySupport.isAdvisoryTopic(destination)) { persistenceAdapter.removeTopicMessageStore((ActiveMQTopic) destination); } } }
@Override public void removeDestination(Destination dest) { ActiveMQDestination destination = dest.getActiveMQDestination(); if (!destination.isTemporary()) { if (destination.isQueue()) { persistenceAdapter.removeQueueMessageStore((ActiveMQQueue) destination); } else if (!AdvisorySupport.isAdvisoryTopic(destination)) { persistenceAdapter.removeTopicMessageStore((ActiveMQTopic) destination); } } }
@Override public void removeDestination(Destination dest) { ActiveMQDestination destination = dest.getActiveMQDestination(); if (!destination.isTemporary()) { if (destination.isQueue()) { persistenceAdapter.removeQueueMessageStore((ActiveMQQueue) destination); } else if (!AdvisorySupport.isAdvisoryTopic(destination)) { persistenceAdapter.removeTopicMessageStore((ActiveMQTopic) destination); } } }