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?



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 queue in java?

0 Answers  


What is the diffrence between Java Mail and JMS Queue?

1 Answers  


How to Set message priority levels?

0 Answers  


What are the core JMS-related objects required for each JMS-enabled application?

1 Answers  


What is the difference between a queue and a topic?

0 Answers  


How to handle the exception caused by jms?

0 Answers  


Which models are supported by jms? Please, explain them.

0 Answers  


What is MOM in reference to JMS?

0 Answers  


What Is the JMS API?

1 Answers  


Where is jms used?

0 Answers  


Can JMS utilities automatically re-establish a connection if one side of the communication link (i.e. an application that's sending/receiving messages) goes down and is restarted? Are there APIs to help detect that the other side broke a connection (went down)?

1 Answers  


what is distributed queues and topics and how they works

1 Answers  


Categories