GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  JMS
Go To First  |  Previous Question  |  Next Question 
 JMS  |  Question 4 of 17    Print  
What is Producer, Consumer

Sample Source Code : The Producer/Consumer Example

Another very good article with sample source code on How Java uses the producer/consumer model to handle images -- An insider's look . Read the article




  
Total Answers and Comments: 3 Last Update: October 17, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 03, 2005 16:47:57   #1  
Swap        

RE: What is Producer, Consumer
Producer is who sends the message to the destination. Consumer is who receives the message from destination.
 
Is this answer useful? Yes | No
July 17, 2005 11:06:38   #2  
Jakeer Singh        

RE: What is Producer, Consumer
Messaging lets a servlet delegate processing to a batch process either on the same machine or on a separate machine. The servlet creates a message and sends it to a queue. The servlet immediately completes and when the batch process is ready, it processes the message. 
 
Messaging is therefore comprised of three main components:  
 
A Producer creates messages and sends them to a Queue. The Producer could be something like a Servlet.  
A Queue stores the messages from the Produces and provides them to a Consumer when ready. The Queue is implemented by the messaging provider.  
A Consumer processes messages as they become available in the Queue. The Consumer is typically a bean implementing the MessageListener interface.

 
Is this answer useful? Yes | No
October 17, 2005 02:45:22   #3  
evijayshekar Member Since: October 2005   Contribution: 1    

RE: What is Producer, Consumer

A producer is the client application that plays the role of a message sender in JMS API.

A consumer is the client application that plays the role of a message receiver in JMS API.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape