Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Producer and Consumer?

Answer Posted / munnu

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 Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a message in software?

914


What is jms and activemq?

836


How does a sender application transport/send a message through jms?

884


What is JMS administered object?

899


Explain about session interface?

896


What is the procedure to configure jms security?

873


What is difference between queue and topic in jms?

837


Can we send e-mail messages using JMS?

956


Are foreign destinations handled within foreign jms messages?

902


Are there c/c++ interfaces to wls jms?

869


What is meant by jms?

896


Explain about publish model?

920


What are all the features of JMS API in J2EE platform?

920


Mention the difference between durable and non-durable subscription?

806


Which messaging is generally used in cases where a message is published by a producer and consumed by multiple subscribers?

787