Some ActiveMQ script improvements