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 jms connection?

0 Answers  


Explain about publish model?

0 Answers  


Which types of jdbc databases does weblogic jms support?

0 Answers  


How does a typical client perform the communication?

1 Answers  


What happens when jms queue is full?

0 Answers  






What is a jms connection?

0 Answers  


What are the various message types supported by JMS?

1 Answers  


What is a bytes message?

0 Answers  


What is jms topic?

0 Answers  


What are the main component in JMS?

1 Answers  


What is JMS API Architecture?

0 Answers  


What is JMS Client?

1 Answers  


Categories