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
What is the principle difference between the working mechanism of jms and rpc?
Explain how does the JMS work with the J2EE?
What is jms active mq?
What is the publish-and-subscribe model in jms?
Can two jms servers share the same persistent store?
Explain about map message?
How to Send object as message in JMS?
Give an example of using the publish/subscribe model.
What is the use of connection factory in jms?
Where is jms used?
What is jms destination?
How does a message queue work?
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?
Must I place all my class files in the WEB-INF folder and all JSP's outside?
What is the use of jms? Can we send message from one server to another server using jms?