JMS with HornetQ – JBoss 7 EAP 1

Lets make JMS app with HornetsQ as MOM. I make use of JBoss 7 EAP and exposed the topic so that i can remotely lookup that into my main program. First i added jms topic inside my standalone-full.xml file. Below is the Message Producer class: Below is the Message Consumer class: