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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -