If false, the message consumer is connected to the broker as 'non-durable', so it receives only messages which are sent while the connection is active.
Other messages are lost.
If the attribute is true, the consumer is subscribed as 'durable' so it receives even messages which are sent while the connection is inactive.
The broker stores such messages until they can be delivered or until the expiration is reached.
This switch is useful only for Topics destinations, because Queue destinations always store messages until they can be delivered or the expiration is reached.
Please note that consumer is inactive e.g.
during server restart and during short moment when the user updates the "JMS message listener" and it must be re-initialized.
So during these intervals, the message in the Topic may get lost if the consumer does not have the durable subscription.
If the subscription is durable, client must have ClientId specified.
This attribute can be set in different ways in dependence on JMS provider.
E.g.
for ActiveMQ, it is set as a URL parameter tcp://localhost:1244?jms.clientID=TestClientID
.