I guess the consumer of the Messages should be listening always or should be setup in a batch to run often to check and consume messages.
When we do basic examples, we use stand alone java program that keeps running. How do we implement them in the real world web application with any Application Server like JBoss? Lets say, we use Spring MVC, Hibernate and JBoss. How is it normally implemented / set it up so it keeps running and consume messages?
(Producer can be any webpage, button click or something of that sort)
May be pretty basic dumb question. :-)