• Post Reply Bookmark Topic Watch Topic
  • New Topic

MQ Listener  RSS feed

 
Manoj Singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • 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
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • 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
  • 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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!