What is the difference between Message producer and Message consumer?
Submitted by: AdministratorMessaging systems provide a host of powerful advantages over other conventional distributed computing models. Primarily, they encourage "loose coupling" between message consumers and message producers. There is a high degree of anonymity between producer and consumer: to the message consumer, it doesn't matter who produced the message, where the producer lives on the network, or when the message was produced.
Submitted by: Administrator
Submitted by: Administrator
In Publish/Subscribe model:
A publish/subscribe (pub/sub) messaging system supports an event driven model where information consumers and producers participate in the transmission of messages. Producers "publish" events, while consumers "subscribe" to events of interest, and consume the events. Producers associate messages with a specific topic, and the messaging system routes messages to consumers based on the topics the consumers register interest in.
In Point-To-Point model:
In point to point messaging systems, messages are routed to an individual consumer which maintains a queue of "incoming" messages. Messaging applications send messages to a specified queue, and clients retrieve messages from a queue.
Submitted by: Administrator
A publish/subscribe (pub/sub) messaging system supports an event driven model where information consumers and producers participate in the transmission of messages. Producers "publish" events, while consumers "subscribe" to events of interest, and consume the events. Producers associate messages with a specific topic, and the messaging system routes messages to consumers based on the topics the consumers register interest in.
In Point-To-Point model:
In point to point messaging systems, messages are routed to an individual consumer which maintains a queue of "incoming" messages. Messaging applications send messages to a specified queue, and clients retrieve messages from a queue.
Submitted by: Administrator
In Point-To-Point model, one client can send message to the another client through the Destination.
There is a guarantee to receive the message whenever receiver is connected.
example:your telephone answering machine ,outer send a message to u,but you can receive those msg whenever u connected to answering machine.
In pub/sub model. one publisher,many no.of clients will be there,publisher publish the message,subscriber or consumer can receive those messages when he got subscription through the topic.There is no guarantee consumer can receive the messages send by the publisher.
Submitted by: Administrator
There is a guarantee to receive the message whenever receiver is connected.
example:your telephone answering machine ,outer send a message to u,but you can receive those msg whenever u connected to answering machine.
In pub/sub model. one publisher,many no.of clients will be there,publisher publish the message,subscriber or consumer can receive those messages when he got subscription through the topic.There is no guarantee consumer can receive the messages send by the publisher.
Submitted by: Administrator
Read Online Java Message Service (JMS) Job Interview Questions And Answers
Top Java Message Service (JMS) Questions
☺ | Must I place all my class files in the WEB-INF folder and all JSP's outside? |
☺ | What is the publish-and-subscribe model in JMS? |
☺ | What type messaging is provided by JMS? |
☺ | What is the difference between Message producer and Message consumer? |
☺ | How may messaging models do JMS provide for and what are they? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |