I know that JMS Queues can be created in HornetQ via the hornetq-jmx.xml Configuration file. But I want to do this from the client?
I tried:
HornetQJMSClient.createQueue(queueName);
but this seems to not create the queue (on the hornetq server)? I always get an exception that the queue is unknown when I try to create a consumer for this queue.
I would be very thankfull for advice 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 HornetQs Core APIs (as opposed to the JMS APis) to create the queues from the client. My question is: Is there any way to create queues from the client (either with JMS Apis or with the HornetQ Core APIs).