Listing posts in Java
Super simple MessageDriven Beans in JBoss
Posted June 12, 2009 10:02 in Java by Andreas
If you ever need JMS-messages to trigger certain actions, a MessageDriven Bean is usually a good starting point. With EJB3 annotations it’s really as easy as it gets.
Just extend MessageListener and annotate your class with a @MessageDriven annotation and you are ready to go.
Package as jar and hot-deploy in JBoss.
Remember to add your dependencies in the lib folder as well.