1. Benjamin Smith
  2. python-stomp


Benjamin Smith  committed ccbd44f

Add note in example code about how to keep queues persistent and durable in rabbitmq.

  • Participants
  • Parent commits 9115124
  • Branches default
  • Tags stompy-0.1.5

Comments (0)

Files changed (1)

File examples/stomp_example.py

View file
         print("Cannot connect")
+    # If using RabbitMQ, the queue seems to 'disappear' 
+    # after disconnecting a consumer, to make the queue persistent
+    # add the headers 'auto-delete': 'false' and 'durable': 'true'
+    # to the dictionary below
     stomp.subscribe({'destination': queue, 'ack': 'client'})
     if not num: