Hi guys,
I am having trouble consuming messages from a Virtual Topic.
Basically I want messages from FOO queue to be published to
VirtualTopic.BAR. Here is what I have so far:

Camel side
from("jms:queue:FOO").to("activemq:topic:VirtualTopic.BAR");

Consumer side: 
ConsumerTemplate consumerTemplate = context.getBean("consumerTemplate",
ConsumerTemplate.class);
String msg =
consumerTemplate.receiveBody("activemq:topic:Consumer.BAR.MEMBERSHIPS",
String.class);

According to the documentation, the above should work. However, messages
aren't received by the consumer.

A side note: activemq.xml (ActiveMQ version is 5.11.1) doesn't include
entries for destinationInterceptors which  ActiveMQ documentation
<http://activemq.apache.org/virtual-destinations.html>   states that this
entry is there by default. 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Virtual-Topic-isn-t-working-tp5765762.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to