• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

JMS Consumers and MDB

 
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
 
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 ]
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!