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.
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
posted 11 years ago
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.