You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by robertchatley <ro...@chatley.com> on 2006/10/17 18:01:32 UTC

Virtual Destinations

I'm trying out ActiveMQ, and have been trying to use virtual destinations to
publish on a topic but subscribe on a queue. So far my consumers never
receive any messages. I think I must have done something wrong in creating
the destinations (I am trying to use the out-of-the-box configuration).

For my producer I did:

MessageProducer producer = session.createProducer(new
ActiveMQTopic("VirtualTopic.TEST")); 

For my consumer I did:

MessageConsumer consumer = session.createConsumer(new
ActiveMQQueue("Consumer.A.VirtualTopic.TEST");

The documentation on http://www.activemq.org/site/virtual-destinations.html
is a little inconsistent about what the names of the topics should be.

I am using the distribution from
apache-activemq-4.1-incubator-20060726.060132-1.zip, running on JDK_1_5_0_06
on Windows.

thanks,
Robert
-- 
View this message in context: http://www.nabble.com/Virtual-Destinations-tf2460398.html#a6857902
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Virtual Destinations

Posted by James Strachan <ja...@gmail.com>.
That all sounds about right to me. FWIW there's a test case if you
want to tinker with it called VirtualTopicPubSubTest.java.

So it looks like you've got the names correct - you're using the
default activemq.xml file right?

I wonder, does looking in JConsole (JMX) help diagnose whats wrong?

BTW there were some inconsistencies on the wiki page that I've now
fixed - its definitely VirtualTopic. (not the plural)

http://activemq.org/site/virtual-destinations.html


On 10/17/06, robertchatley <ro...@chatley.com> wrote:
>
> I'm trying out ActiveMQ, and have been trying to use virtual destinations to
> publish on a topic but subscribe on a queue. So far my consumers never
> receive any messages. I think I must have done something wrong in creating
> the destinations (I am trying to use the out-of-the-box configuration).
>
> For my producer I did:
>
> MessageProducer producer = session.createProducer(new
> ActiveMQTopic("VirtualTopic.TEST"));
>
> For my consumer I did:
>
> MessageConsumer consumer = session.createConsumer(new
> ActiveMQQueue("Consumer.A.VirtualTopic.TEST");
>
> The documentation on http://www.activemq.org/site/virtual-destinations.html
> is a little inconsistent about what the names of the topics should be.
>
> I am using the distribution from
> apache-activemq-4.1-incubator-20060726.060132-1.zip, running on JDK_1_5_0_06
> on Windows.
>
> thanks,
> Robert
> --
> View this message in context: http://www.nabble.com/Virtual-Destinations-tf2460398.html#a6857902
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/