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 the principle difference between the working mechanism of jms and rpc?

863


Explain how does the JMS work with the J2EE?

878


What is jms active mq?

817


What is the publish-and-subscribe model in jms?

828


Can two jms servers share the same persistent store?

833


Explain about map message?

860


How to Send object as message in JMS?

1382


Give an example of using the publish/subscribe model.

856


What is the use of connection factory in jms?

860


Where is jms used?

858


What is jms destination?

912


How does a message queue work?

907


Can two different jms services talk to each other? For instance, if a and b are two different jms providers, can provider a send messages directly to provider b? If not, then can a subscriber to provider a act as a publisher to provider b?

993


Must I place all my class files in the WEB-INF folder and all JSP's outside?

1396


What is the use of jms? Can we send message from one server to another server using jms?

844