refactor active mq configuration