I believe your client should look like this:
String msg =
consumerTemplate.receiveBody("activemq:queue:Consumer.blah.VirtualTopic.BAR",
String.class);
...where 'blah' is replaced with an identifier (that does not contain
period characters) of your choosing.
Thanks,
Paul
On Tue, Apr 14, 2015 at 9:13 AM, hayden74 <[email protected]> wrote:
> 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.
>