How to programmatically create a w / hornet q theme?

I watched the org.hornetq.core.server package, which seems to have the most interesting low-level APIS related to server management.

There are several methods in the server session that are marked as "Queue", but none of them contain a topic ...

ServerSession

void createQueue(SimpleString address,
                          SimpleString name,
                          SimpleString filterString,
                          boolean temporary,
                          boolean durable) throws Exception;

   void deleteQueue(SimpleString name) throws Exception

QueueFactory interface

Queue createQueue(long persistenceID,
                 final SimpleString address,
                 SimpleString name,
                 Filter filter,
                 boolean durable,
                 boolean temporary);

However, I could not figure out how to create a theme. Am I missing something, is this a JMS topic implemented as a queue?

+3
source share
1 answer

The main API does not know the concept of the topic, since it is used in JMS, it only knows the queues and addresses. The documentation says:

* , JMS , . . JMS , , - JMS. *

API JMS: -)

+1

Source: https://habr.com/ru/post/1782911/


All Articles