• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS Consumers and MDB

 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am sorry if this seems like a silly question but the book I am using referes multiple time to JMS Consumers and MDB as two different things ... ARE THEY?
if so then what is the difference please?

Thanks
 
E Lievaart
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JMS we typically have a JMS provider (the server) and JMS clients (anyone that uses the JMS server).
Clients can be message consumers or message producers or both.
A JMS consumer is simply any class that recieves messages from JMS topics or queues.
A JMS producer is a class that post JMS messages to the server.

A Message Driven Bean (MDB) is the EJB implementation of a JMS consumer.
MDB's are quite similar to stateless session beans,
but rather than exposing a business interface to the client, they receive messages from JMS.
[ July 16, 2008: Message edited by: E Lievaart ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic