8.5.3. Create a durable queue in an application

The following example code creates a durable queue called "important-messages":
C++
Sender sender = session.createSender("important-messages; {create:always, node:{durable: True}")
Python
newqueue = session.sender("important-messages; {create:always, node:{durable: True}")
Note that if a queue is declared durable and auto-delete, it is only durable until it gets auto-deleted! Carefully consider if this is the behavior that you want.