activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "juanmanuel.romeraferrio" <juanmanuel.romerafer...@gmail.com>
Subject Filtered destinations
Date Fri, 27 Mar 2015 13:43:01 GMT
Hi, I have a question about filter destinantions.

I have de next configuration:

		<destinations>
			<queue physicalName="transactionQueue-1.6.0-SNAPSHOT" />
			<queue physicalName="logRecoveryQueue-1.6.0-SNAPSHOT" />
			<queue physicalName="transactionQueue-1.5.0-SNAPSHOT" />
			<queue physicalName="logRecoveryQueue-1.5.0-SNAPSHOT" />
		</destinations>
		
		<destinationInterceptors>
		  <virtualDestinationInterceptor>
			<virtualDestinations>
			  <compositeQueue name="transactionQueue">
				<forwardTo>
					<filteredDestination selector="VERSION = '1.6.0-SNAPSHOT'"
queue="transactionQueue-1.6.0-SNAPSHOT"/>
					<filteredDestination selector="VERSION = '1.5.0-SNAPSHOT'"
queue="transactionQueue-1.5.0-SNAPSHOT"/>
				</forwardTo>
				
			  </compositeQueue>
			  <compositeQueue name="logRecoveryQueue">
				<forwardTo>
					<filteredDestination selector="VERSION = '1.6.0-SNAPSHOT'"
queue="logRecoveryQueue-1.6.0-SNAPSHOT"/>
					<filteredDestination selector="VERSION = '1.5.0-SNAPSHOT'"
queue="logRecoveryQueue-1.5.0-SNAPSHOT"/>
				</forwardTo>
			  </compositeQueue>
			</virtualDestinations>
		  </virtualDestinationInterceptor>
		</destinationInterceptors>




But my problems is that if a producer send a message with the VERSION 
different to 1.6.0-SNAPSHOT or 1.5.0-SNAPSHOT this message is lost.

This is the correct behavior? How can avoid that?



--
View this message in context: http://activemq.2283324.n4.nabble.com/Filtered-destinations-tp4693928.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message