This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help need on JMS - webspher MQ in JBoss

 
Ramesh Arekatla
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are going to use web sphere MQ as MOM and JMS to subscribe msgs from which are in MQ Queue.
we are planning to use JBoss as Application Server

what I need is how to subscribe msgs from MQ Queue.
I've code for subscribing msgs from JMS queue

can I use the same code for MQ Queue.

Thanks in advance
Ramesh
 
Naveen Sampra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a MDB(Message Driven Bean) and configure it to listen to the MQ port. The onMessage() method of MDB will be called by container when a message arrives.
Do your processing in the onMessage() method of MDB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic