if (destination.getDestinationType() == destination2.getDestinationType()) { if (destination.isPattern() && destination2.isPattern() ) { if (destination.getPhysicalName().compareTo(destination2.getPhysicalName()) == 0) { return 0; if (destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination); if (filter.matches(destination2)) { if (destination2.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination2); if (filter.matches(destination)) {
@Override public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { if (destination.isQueue() && destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(new ActiveMQQueue(prefix + DestinationFilter.ANY_DESCENDENT)); if (filter.matches(destination)) { broker.addDestination(context, destination, false); } } }
LOG.debug("{} adding consumer: {} for destination: {}", new Object[]{ broker.getBrokerName(), info.getConsumerId(), info.getDestination() }); ActiveMQDestination destination = info.getDestination(); if (destination != null && !destination.isPattern() && !destination.isComposite()) {
private ConsumerBrokerExchange addConsumerBrokerExchange(TransportConnectionState connectionState, ConsumerId id) { ConsumerBrokerExchange result = consumerExchanges.get(id); if (result == null) { synchronized (consumerExchanges) { result = new ConsumerBrokerExchange(); context = connectionState.getContext(); result.setConnectionContext(context); SessionState ss = connectionState.getSessionState(id.getParentId()); if (ss != null) { ConsumerState cs = ss.getConsumerState(id); if (cs != null) { ConsumerInfo info = cs.getInfo(); if (info != null) { if (info.getDestination() != null && info.getDestination().isPattern()) { result.setWildcard(true); } } } } consumerExchanges.put(id, result); } } return result; }
if (!destination.isPattern()) {
if (match == 0 || (!next.getActiveMQDestination().isPattern() && match == 1)) { super.addSubscription(context, sub);
if (destination.getDestinationType() == destination2.getDestinationType()) { if (destination.isPattern() && destination2.isPattern() ) { if (destination.getPhysicalName().compareTo(destination2.getPhysicalName()) == 0) { return 0; if (destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination); if (filter.matches(destination2)) { if (destination2.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination2); if (filter.matches(destination)) {
if (destination.getDestinationType() == destination2.getDestinationType()) { if (destination.isPattern() && destination2.isPattern() ) { if (destination.getPhysicalName().compareTo(destination2.getPhysicalName()) == 0) { return 0; if (destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination); if (filter.matches(destination2)) { if (destination2.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination2); if (filter.matches(destination)) {
if (destination.getDestinationType() == destination2.getDestinationType()) { if (destination.isPattern() && destination2.isPattern() ) { if (destination.getPhysicalName().compareTo(destination2.getPhysicalName()) == 0) { return 0; if (destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination); if (filter.matches(destination2)) { if (destination2.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(destination2); if (filter.matches(destination)) {
public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { if (destination.isQueue() && destination.isPattern() && broker.getDestinations(destination).isEmpty()) { DestinationFilter filter = DestinationFilter.parseFilter(new ActiveMQQueue(prefix + DestinationFilter.ANY_DESCENDENT)); if (filter.matches(destination)) { broker.addDestination(context, destination, false); } } }
@Override public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { if (destination.isQueue() && destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(new ActiveMQQueue(prefix + DestinationFilter.ANY_DESCENDENT)); if (filter.matches(destination)) { broker.addDestination(context, destination, false); } } }
@Override public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { if (destination.isQueue() && destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(new ActiveMQQueue(prefix + DestinationFilter.ANY_DESCENDENT)); if (filter.matches(destination)) { broker.addDestination(context, destination, false); } } }
@Override public void create(Broker broker, ConnectionContext context, ActiveMQDestination destination) throws Exception { if (destination.isQueue() && destination.isPattern()) { DestinationFilter filter = DestinationFilter.parseFilter(new ActiveMQQueue(prefix + DestinationFilter.ANY_DESCENDENT)); if (filter.matches(destination)) { broker.addDestination(context, destination, false); } } }
private ConsumerBrokerExchange addConsumerBrokerExchange(TransportConnectionState connectionState, ConsumerId id) { ConsumerBrokerExchange result = consumerExchanges.get(id); if (result == null) { synchronized (consumerExchanges) { result = new ConsumerBrokerExchange(); context = connectionState.getContext(); result.setConnectionContext(context); SessionState ss = connectionState.getSessionState(id.getParentId()); if (ss != null) { ConsumerState cs = ss.getConsumerState(id); if (cs != null) { ConsumerInfo info = cs.getInfo(); if (info != null) { if (info.getDestination() != null && info.getDestination().isPattern()) { result.setWildcard(true); } } } } consumerExchanges.put(id, result); } } return result; }
private ConsumerBrokerExchange addConsumerBrokerExchange(TransportConnectionState connectionState, ConsumerId id) { ConsumerBrokerExchange result = consumerExchanges.get(id); if (result == null) { synchronized (consumerExchanges) { result = new ConsumerBrokerExchange(); context = connectionState.getContext(); result.setConnectionContext(context); SessionState ss = connectionState.getSessionState(id.getParentId()); if (ss != null) { ConsumerState cs = ss.getConsumerState(id); if (cs != null) { ConsumerInfo info = cs.getInfo(); if (info != null) { if (info.getDestination() != null && info.getDestination().isPattern()) { result.setWildcard(true); } } } } consumerExchanges.put(id, result); } } return result; }
private ConsumerBrokerExchange addConsumerBrokerExchange(TransportConnectionState connectionState, ConsumerId id) { ConsumerBrokerExchange result = consumerExchanges.get(id); if (result == null) { synchronized (consumerExchanges) { result = new ConsumerBrokerExchange(); context = connectionState.getContext(); result.setConnectionContext(context); SessionState ss = connectionState.getSessionState(id.getParentId()); if (ss != null) { ConsumerState cs = ss.getConsumerState(id); if (cs != null) { ConsumerInfo info = cs.getInfo(); if (info != null) { if (info.getDestination() != null && info.getDestination().isPattern()) { result.setWildcard(true); } } } } consumerExchanges.put(id, result); } } return result; }
private ConsumerBrokerExchange getConsumerBrokerExchange(ConsumerId id) { ConsumerBrokerExchange result = consumerExchanges.get(id); if (result == null) { synchronized (consumerExchanges) { result = new ConsumerBrokerExchange(); TransportConnectionState state = lookupConnectionState(id); context = state.getContext(); result.setConnectionContext(context); SessionState ss = state.getSessionState(id.getParentId()); if (ss != null) { ConsumerState cs = ss.getConsumerState(id); if (cs != null) { ConsumerInfo info = cs.getInfo(); if (info != null) { if (info.getDestination() != null && info.getDestination().isPattern()) { result.setWildcard(true); } } } } consumerExchanges.put(id, result); } } return result; }
protected void inject(MessageRouter messageRouter, CommandMessage message) throws Exception { if (message != null && messageRouter != null) { ActiveMQDestination endpointDestination = destination; ActiveMQDestination originalDestination = message.getDestination(); ActiveMQDestination newDestination = endpointDestination; if (!AdvisorySupport.isAdvisoryTopic(originalDestination)) { if (endpointDestination.isPattern()) { String physicalName = originalDestination.getPhysicalName(); newDestination = ActiveMQDestination.createDestination(physicalName, endpointDestination.getDestinationType()); } } else { newDestination = originalDestination; } message.setDestination(newDestination); messageRouter.inject(message.getCommand()); } } }
if (match == 0 || (!next.getActiveMQDestination().isPattern() && match == 1)) { super.addSubscription(context, sub);
if (match == 0 || (!next.getActiveMQDestination().isPattern() && match == 1)) { super.addSubscription(context, sub);