making sy configurable to use hornetq or jboss amq