On 08/28/2014 05:43 AM, khandelwalanuj wrote:
Hi,

I have gone through http://activemq.apache.org/virtual-destinations.html to
understand how to create virtual topics and on what destinations listeners
should be listening to.

I have a use case where I want to create a virtual topic without any change
in the broker configuration. I saw one blog post saying that we can directly
create virtual topic as :
https://www.packtpub.com/books/content/using-virtual-destinations-advanced
producer side: mySession.createTopic("VirtualTopic.Foo"); // TOpic starting
with name "VirtualTopic" is internally considered as virtual topic.
Consumer Side: mySession.createTopic("Consumer.A.VirtualTopic.Foo");

Your code is creating a Topic instead of a Queue for

"Consumer.A.VirtualTopic.Foo"

Try a Queue instead.

But I am not able to see the messages on my consumer side.


What should I do to achieve virtual destination functionality on client side
without changing the broker configuration  ?


Thanks,
Anuj




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Virtual-Topics-creation-by-producer-tp4685089.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.



--
Tim Bish
Sr Software Engineer | RedHat Inc.
[email protected] | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to