messageContext.setMessageReference(message); messageContext.setDestination(filteredDestination.getDestination()); if (filteredDestination.matches(messageContext)) { destination = filteredDestination.getDestination();
public boolean matches(MessageEvaluationContext context) throws JMSException { BooleanExpression booleanExpression = getFilter(); if (booleanExpression == null) { return false; } return booleanExpression.matches(context); }
/** * Sets the destination property to the given queue name */ public void setQueue(String queue) { setDestination(ActiveMQDestination.createDestination(queue, ActiveMQDestination.QUEUE_TYPE)); }
/** * Sets the JMS selector used to filter messages before forwarding them to this destination */ public void setSelector(String selector) throws InvalidSelectorException { this.selector = selector; setFilter(SelectorParser.parse(selector)); }
if (dest instanceof FilteredDestination) { FilteredDestination filteredDestination = (FilteredDestination) dest; destinations[i++] = filteredDestination.getDestination(); } else if (dest instanceof ActiveMQDestination) { destinations[i++] = (ActiveMQDestination) dest;
public static Object inferTargetObject(Object elementContent) { if (DtoTopic.class.isAssignableFrom(elementContent.getClass())) { return new ActiveMQTopic(); } else if (DtoQueue.class.isAssignableFrom(elementContent.getClass())) { return new ActiveMQQueue(); } else if (DtoAuthenticationUser.class.isAssignableFrom(elementContent.getClass())) { return new AuthenticationUser(); } else if (DtoFilteredDestination.class.isAssignableFrom(elementContent.getClass())) { return new FilteredDestination(); } else { return new Object(); } }
/** * Sets the JMS selector used to filter messages before forwarding them to this destination */ public void setSelector(String selector) throws InvalidSelectorException { this.selector = selector; setFilter(SelectorParser.parse(selector)); }
if (dest instanceof FilteredDestination) { FilteredDestination filteredDestination = (FilteredDestination) dest; destinations[i++] = filteredDestination.getDestination(); } else if (dest instanceof ActiveMQDestination) { destinations[i++] = (ActiveMQDestination) dest;
messageContext.setMessageReference(message); messageContext.setDestination(filteredDestination.getDestination()); if (filteredDestination.matches(messageContext)) { destination = filteredDestination.getDestination();
/** * Sets the destination property to the given topic name */ public void setTopic(String topic) { setDestination(ActiveMQDestination.createDestination(topic, ActiveMQDestination.TOPIC_TYPE)); }
/** * Sets the JMS selector used to filter messages before forwarding them to this destination */ public void setSelector(String selector) throws InvalidSelectorException { this.selector = selector; setFilter(SelectorParser.parse(selector)); }
public boolean matches(MessageEvaluationContext context) throws JMSException { BooleanExpression booleanExpression = getFilter(); if (booleanExpression == null) { return false; } return booleanExpression.matches(context); }
if (dest instanceof FilteredDestination) { FilteredDestination filteredDestination = (FilteredDestination) dest; destinations[i++] = filteredDestination.getDestination(); } else if (dest instanceof ActiveMQDestination) { destinations[i++] = (ActiveMQDestination) dest;
messageContext.setMessageReference(message); messageContext.setDestination(filteredDestination.getDestination()); if (filteredDestination.matches(messageContext)) { destination = filteredDestination.getDestination();
/** * Sets the destination property to the given topic name */ public void setTopic(String topic) { setDestination(ActiveMQDestination.createDestination(topic, ActiveMQDestination.TOPIC_TYPE)); }
/** * Sets the JMS selector used to filter messages before forwarding them to this destination */ public void setSelector(String selector) throws InvalidSelectorException { this.selector = selector; setFilter(SelectorParser.parse(selector)); }
public boolean matches(MessageEvaluationContext context) throws JMSException { BooleanExpression booleanExpression = getFilter(); if (booleanExpression == null) { return false; } return booleanExpression.matches(context); }
if (dest instanceof FilteredDestination) { FilteredDestination filteredDestination = (FilteredDestination) dest; destinations[i++] = filteredDestination.getDestination(); } else if (dest instanceof ActiveMQDestination) { destinations[i++] = (ActiveMQDestination) dest;
messageContext.setMessageReference(message); messageContext.setDestination(filteredDestination.getDestination()); if (filteredDestination.matches(messageContext)) { destination = filteredDestination.getDestination();
/** * Sets the destination property to the given queue name */ public void setQueue(String queue) { setDestination(ActiveMQDestination.createDestination(queue, ActiveMQDestination.QUEUE_TYPE)); }