What is Producer and Consumer?



What is Producer and Consumer?..

Answer / 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

More JMS Interview Questions

What is the use of EventMessage.java?

0 Answers  


What is jms connection?

0 Answers  


How to Send object as message in JMS?

0 Answers  


What is the functionality of a message listener in the context of jms?

0 Answers  


What are the functionalities of a jms provider?

0 Answers  






How to Configure Open JMS?

0 Answers  


What is a message in software?

0 Answers  


What is difference between JMS and Web Services?

0 Answers  


What Is Messaging?

1 Answers  


Is ibm mq jms compliant?

0 Answers  


What is difference between queue and topic in jms?

0 Answers  


What are the three components of a Message ?

1 Answers  


Categories