Added Active MQ Bean and refactored the code