Siva
Siva

Reputation: 112

How to send ActiveMQ VirtualTopic in node js?

How to send ActiveMQ VirtualTopic in node js ?

Am using stompit library for send and receive queue. This will working properly.

I need to send virtual topic, How to implement in node ?

 ActiveMQ.Advisory.Producer.Topic.VirtualTopic 

 ActiveMQConnectionFactory allow to create producer and topic in java

But, there is no option like that in node js.

https://i.sstatic.net/o5tqE.png

If I produce from Java then Topic: Lenovo.* (marked red color in screen shot) then automatically created ActiveMQ.Advisory.Producer.Topic.Lenovo.* (Marked green color in screen shot)

Not create ActiveMQ.Advisory.Producer.Topic when produce from node

Upvotes: 0

Views: 472

Answers (1)

Tim Bish
Tim Bish

Reputation: 18366

Virtual destinations are just named endpoints like any other. To send to one the client would send to a destination like '/topic/VirtualTopic.Orders' and then consume from the queue '/queue/Consumer.A.VirtualTopic.Orders' and that is about it. See the documentation for the Virtual Destinations feature in ActiveMQ to understand how the naming works.

Upvotes: 1

Related Questions