I am new to Java & Tomcat, so far done some good examples in creating web application UI interactions.
Now i have requirement to read messages from MQ (Websphere QM Queue) queue and store it in DB. on web i see lot of examples on JMS/MQ configuration on tomcat to read message from queue and write to queue but not very clear if i can configure JMS listener for MQ on tomcat. basically every time messages comes to queue this listener should get notified to perform its job. (ex: when messages comes to queue trigger the flow and complete job ).
please let me know if this is possible to Tomcat? i am using tomcat 7.0.42, if not possible can please suggest any alternatives to read messages from MQ queue from application running tomcat or any other alternatives.
The thing that differentiates Tomcat from the "full stack" J2EE and JEE servers is that Tomcat only implements the servlet and JSP parts of the Enterprise Java specs. It does that very well - products such as JBoss actually embed a copy of Tomcat in themselves to handle their servlet and JSP needs - but that's all it does. Tomcat has no JMS capabilities.
Fortunately, there are libraries that can be incorporated into web applications that will be running under Tomcat. Several of them, in fact. Apache and ObjectWeb both have messaging libraries that I know of, and I think without too much trouble you can find around a half a dozen libraries to choose from.
I'm going to be a "small government" candidate. I'll be the government. Just me. No one else.
Thank you for providing details, if possible can you please point me to some resources or examples where i can configure listener using these libraries. once again thank you so much for your response.