if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest) && !doesConsumerExist(dest)) { try { } else if (configuration.isSyncDurableSubs() && !isPermissableDestination(dest)) { if (dest.isTopic()) { RegionBroker regionBroker = (RegionBroker) brokerService.getRegionBroker();
/** * Subscriptions for these destinations are always created * */ protected void setupStaticDestinations() { super.setupStaticDestinations(); ActiveMQDestination[] dests = configuration.isDynamicOnly() ? null : durableDestinations; if (dests != null) { for (int i = 0; i < dests.length; i++) { ActiveMQDestination dest = dests[i]; if (isPermissableDestination(dest) && !doesConsumerExist(dest)) { DemandSubscription sub = createDemandSubscription(dest); if (dest.isTopic()) { sub.getLocalInfo().setSubscriptionName(getSubscriberName(dest)); } try { addSubscription(sub); } catch (IOException e) { LOG.error("Failed to add static destination " + dest, e); } if (LOG.isTraceEnabled()) { LOG.trace("Forwarding messages for durable destination: " + dest); } } } } }
if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest) && !doesConsumerExist(dest)) { try { } else if (configuration.isSyncDurableSubs() && !isPermissableDestination(dest)) { if (dest.isTopic()) { RegionBroker regionBroker = (RegionBroker) brokerService.getRegionBroker();
if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest) && !doesConsumerExist(dest)) { try { } else if (configuration.isSyncDurableSubs() && !isPermissableDestination(dest)) { if (dest.isTopic()) { RegionBroker regionBroker = (RegionBroker) brokerService.getRegionBroker();
if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest) && !doesConsumerExist(dest)) { try { } else if (configuration.isSyncDurableSubs() && !isPermissableDestination(dest)) { if (dest.isTopic()) { RegionBroker regionBroker = (RegionBroker) brokerService.getRegionBroker();