added hornetq configuration
slight refactoring