Predefined Queues Using JMS
25.1. Predefined Queues Queues can be predefined via configuration at a core level or at a JMS level. Firstly lets look at a JMS level. The following shows a queue predefined in the hornetq-jms.xml configuration file. true This name attribute of queue defines the name of the queue. When we do this at a jms level we follow a naming convention so the actual name of the core queue will be jms.queue.selectorQueue. The entry element configures the name that will be used to bind the queue to JNDI. This is a mandatory element and the queue can contain multiple of these to bind the same queue to different names. The selector element defines what JMS message selector the predefined queue will have. Only messages that match the selector will be added to the queue. This is an optional element with a default of null when omitted. The durable element specifies whether the queue will be persisted. This again is optional and defaults to true if omitted.