from javax.jms import Session from org.apache.activemq import ActiveMQConnectionFactory connFactory = ActiveMQConnectionFactory() conn = connFactory.createConnection() sess = conn.createSession(False, Session.AUTO_ACKNOWLEDGE) dest = sess.createQueue('SampleQueue') cons = sess.createConsumer(dest) conn.start() msg = cons.receive() print(msg) conn.close()
Do you know how I can install the javax and org libraries to execute this script? pip install doesn’t work and I can’t find the anywhere.
You can download them from Maven Central or other Java library repositories.