I know that JMS queues can be created in HornetQ through the hornetq-jmx.xml configuration file. But I want to do this from a client?
I tried:
HornetQJMSClient.createQueue(queueName);
but this does not seem to create a queue (on the hornetq server)? I always get the exception that the queue is unknown when I try to create a user for this queue.
I would be very grateful for the advice on how to create JMS queues from the client. (I do not want to use JNDI at all, neither on the client nor on the server, if possible).
Update:
I would not mind using any of the HornetQs Core APIs (unlike JMS APis) to create queues from the client. My question is: is there a way to create queues from the client (either with Apis JMS, or using the HornetQ Core API).
source share