Download | JavaDocs More... | Source | Forums | Support
Durability of messages is defined by the MessagerProducer. You can explicitly configure the durability via the setDeliveryMode() method. e.g.
MessageProducer producer = ...;
Note that the default is for durable messages to be used if you don't specify a delivery mode.