• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MQ Listener

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

I am in a situation where I have to write a java Program which listens on an MQ Queue. The functionality should be same as that of an MDB. I could have gone for an MDB but due to lack of resources cannot have an app server on the box where this java program will be deployed. I know this can be done but need some references to be able to do that. I will really appreciate if some one can point me in the right direction.

Also I need to know where can I download IBM's latest MQ API for Java.

Thanks
Manoj
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll probably be happiest using the JMS API with MQ as a JMS provider. You can talk straight to a Java MQ API but that's a little more detail-oriented and probably won't have the community support that JMS will.

See if this gets you started: http://java.sun.com/products/jms/tutorial/
 
Manoj Singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all Thanks for your reply.... what u r saying is that it is possible to create a stand alone Listener .... what I am not able to understand is how will that program get the message....I mean there is no concept of container here ....do I have to run that program at intervals or make a cron job which runs it or what ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic