defining and using activemq