python - stomp Connection to ActiveMQ -
using python:
trying connect activemq getting:
notconnectedexception
my code is:
def __init__(self, host='myhost.com', port='1234', user='adminaaa', passcode='pass'): ''' constructor @param host: stomp server hostname @param port: stomp server port ''' self.host = host self.port = port self.user = user self.passcode = passcode self.conn = stomp.connection([(self.host, self.port)], self.user, self.passcode) self.conn.set_listener('', activemqclientlistener())
any idea doing wrong? had working activemq didnt take user/pass.
Comments
Post a Comment