osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I map composite topic to virtual topic


Hello,

After some search, I think I managed to do what you describe.
The only difference I see is that I had to re-specify the default value for
name and prefix of virtualtopics:

<virtualTopic name="VirtualTopic.>" prefix="Consumer.*."
selectorAware="false"/>

in the <virtualDestinations> block.

Example:

	<destinations>
		<topic physicalName="VirtualTopic.orders" />
		<queue physicalName="Consumer.A.VirtualTopic.orders" />
		<queue physicalName="Consumer.B.VirtualTopic.orders" />
		<queue physicalName="Consumer.C.VirtualTopic.orders" />
	</destinations>

	<destinationInterceptors> 
		<virtualDestinationInterceptor> 
			<virtualDestinations> 
				<virtualTopic name="VirtualTopic.>" prefix="Consumer.*."
selectorAware="false"/>
				<compositeQueue name="Consumer.C.VirtualTopic.orders">
					<forwardTo>
						<topic physicalName="Topic.C" />
						<queue physicalName="Queue.C" />
					</forwardTo>
				</compositeQueue>				
			</virtualDestinations>
		</virtualDestinationInterceptor> 
	</destinationInterceptors>




--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html