I am looking for a solution where my application can put messages to be read by another listener for further processing. I do not want to go for MDBs as I do not want to use EJB container (My application runs on a Tomcat). Is there any J2EE or non J2EE alternative?
I want to read messages as the messages come to the queue. Its not a request response messaging that I wanted to do. I want to process messages asynchronously as they come to a queue. I know that MDB is a choice. What if I do not have the option of doing it through an MDB. Is a scheduler to read the messages from the queue a viable option? Is there any other better options available.
And my another question is, if it can be done through other means such a scheduler why do we need MDB at all.
The original poster may want to check out Spring Message Driven POJOs or MDPs. This is a Spring framework for producing and consuming messages on a JMS queue or topic which does not require an EJB container. We've found it easy to use and it integrates nicely of course with the rest of our Spring solutions.