import stomp

class Listener:

  def on_message(self, headers, message):
    print "got %s" % message

conn = stomp.Connection([("ewaf-test.colo.elex.be", 61613)])
conn.set_listener('', Listener())
conn.start()
conn.connect()

conn.subscribe(destination='/queue/test', ack='auto')

conn.send('ping', destination='/queue/test')

import time
time.sleep(1)
