23.2. Using the API

Queues can also be created using the core API or the management API.
For the core API, queues can be created via the org.hornetq.api.core.client.ClientSession interface. There are multiple createQueue methods that support setting all of the previously mentioned attributes. There is one extra attribute that can be set via this API which is temporary. Setting this to true means the queue will be deleted once the session is disconnected.
Take a look at Chapter 28, Management for a description of the management API for creating queues.