/** * Subscriptions for these destinations are always created */ protected void setupStaticDestinations() { ActiveMQDestination[] dests = staticallyIncludedDestinations; if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest)) { DemandSubscription sub = createDemandSubscription(dest, null); if (sub != null) { sub.setStaticallyIncluded(true); try { addSubscription(sub); } catch (IOException e) { LOG.error("Failed to add static destination {}", dest, e); } LOG.trace("{}, bridging messages for static destination: {}", configuration.getBrokerName(), dest); } else { LOG.info("{}, static destination excluded: {}, demand already exists", configuration.getBrokerName(), dest); } } else { LOG.info("{}, static destination excluded: {}", configuration.getBrokerName(), dest); } } } }
if (sub != null) { sub.getLocalInfo().setSubscriptionName(getSubscriberName(dest)); sub.setStaticallyIncluded(true); addSubscription(sub); break;
/** * Subscriptions for these destinations are always created */ protected void setupStaticDestinations() { ActiveMQDestination[] dests = staticallyIncludedDestinations; if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest)) { DemandSubscription sub = createDemandSubscription(dest, null); if (sub != null) { sub.setStaticallyIncluded(true); try { addSubscription(sub); } catch (IOException e) { LOG.error("Failed to add static destination {}", dest, e); } LOG.trace("{}, bridging messages for static destination: {}", configuration.getBrokerName(), dest); } else { LOG.info("{}, static destination excluded: {}, demand already exists", configuration.getBrokerName(), dest); } } else { LOG.info("{}, static destination excluded: {}", configuration.getBrokerName(), dest); } } } }
/** * Subscriptions for these destinations are always created */ protected void setupStaticDestinations() { ActiveMQDestination[] dests = staticallyIncludedDestinations; if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest)) { DemandSubscription sub = createDemandSubscription(dest, null); if (sub != null) { sub.setStaticallyIncluded(true); try { addSubscription(sub); } catch (IOException e) { LOG.error("Failed to add static destination {}", dest, e); } LOG.trace("{}, bridging messages for static destination: {}", configuration.getBrokerName(), dest); } else { LOG.info("{}, static destination excluded: {}, demand already exists", configuration.getBrokerName(), dest); } } else { LOG.info("{}, static destination excluded: {}", configuration.getBrokerName(), dest); } } } }
/** * Subscriptions for these destinations are always created */ protected void setupStaticDestinations() { ActiveMQDestination[] dests = staticallyIncludedDestinations; if (dests != null) { for (ActiveMQDestination dest : dests) { if (isPermissableDestination(dest)) { DemandSubscription sub = createDemandSubscription(dest, null); if (sub != null) { sub.setStaticallyIncluded(true); try { addSubscription(sub); } catch (IOException e) { LOG.error("Failed to add static destination {}", dest, e); } LOG.trace("{}, bridging messages for static destination: {}", configuration.getBrokerName(), dest); } else { LOG.info("{}, static destination excluded: {}, demand already exists", configuration.getBrokerName(), dest); } } else { LOG.info("{}, static destination excluded: {}", configuration.getBrokerName(), dest); } } } }
if (sub != null) { sub.getLocalInfo().setSubscriptionName(getSubscriberName(dest)); sub.setStaticallyIncluded(true); addSubscription(sub); break;
if (sub != null) { sub.getLocalInfo().setSubscriptionName(getSubscriberName(dest)); sub.setStaticallyIncluded(true); addSubscription(sub); break;
if (sub != null) { sub.getLocalInfo().setSubscriptionName(getSubscriberName(dest)); sub.setStaticallyIncluded(true); addSubscription(sub); break;