I'm trying to form a Python + Stomp subscription to an ActiveMQ server. I'm testing against an ActiveMQ server on localhost. It all seems to work OK, except the subscription name for Topic XYZ is being named ActiveMQ.Advisory.Consumer.Queue.XYZ, and the queue I want to connect to (created by a java client) is named only XYZ.
Is there a way to get subscribed to this "short" name queue?
import stomp
QUEUE_NAME='XYZ'
class MyListener(stomp.ConnectionListener):
def on_error(self, headers, message):
print('received an error "%s"' % message)
def on_message(self, headers, message):
print('received a message "%s"' % message)
headers = {}
conn = stomp.Connection( )
conn.set_listener('127.0.0.1:61616', MyListener())
conn.start()
conn.connect('admin', 'admin', wait=True)
conn.subscribe(destination=QUEUE_NAME, id=2, ack='auto')
time.sleep(6660)
conn.disconnect()

