What is the difference between Point to Point and Publish/Subscribe

Point-to-point (P2P)



What is the difference between Point to Point and Publish/Subscribe Point-to-point (P2P)..

Answer / munnu

In point-to-point, messages are sent via queues. Messages are put onto the queues by the message producers (the clients). The message consumer is responsible for pulling the message from the queue. Point-to-point is typically used when a given message must be processed (received) only once by a given consumer. In this way, there is only one consumer of the given message.

Publish-and-subscribe (pub/sub)

In publish-and-subscribe, messages are sent through topics. Messages are published to topics by the message producers. The messages may be received by any consumers that subscribe to the given topic. In this way, a message may be received, or processed, by multiple consumers.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JMS Interview Questions

What is jms message broker?

0 Answers  


Where is jms used?

0 Answers  


What is Stream Message ?

1 Answers   CAP,


Must I place all my class files in the WEB-INF folder and all JSP's outside?

0 Answers   Nigerian Ports Authority,


What is the procedure to configure jms security?

0 Answers  






What is the functionality of a jms queue browser?

0 Answers  


List types of Messaging services supported by JMS?

0 Answers  


What type messaging is provided by JMS ?

1 Answers  


What is administered objects in jms?

0 Answers  


What is the difference between BytesMessage and StreamMessage?

1 Answers  


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

1 Answers  


What are the different messaging paradigms JMS supports?

1 Answers  


Categories