• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

MQ Listener in Tomcat

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
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.

Appreciate any kind of inputs.

regards & Thanks
LL
 
Saloon Keeper
Posts: 26541
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
uma attili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Tim,
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.


regards
LL
 
Tim Holloway
Saloon Keeper
Posts: 26541
187
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recommend that you Google for "tomcat mq".

Depending on which messaging product you decide to use, the instructions will be different.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic