Create Queues Using the API
25.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 that the queue will be deleted once the session is disconnected. Take a look at Chapter 30, Management for a description of the management API for creating queues.