GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  JMS
Go To First  |  Previous Question  |  Next Question 
 JMS  |  Question 3 of 17    Print  
What is the difference between Point to Point and Publish/Subscribe Messaging Domains

Messaging is playing an increasingly important role in enterprise computing. Its advantages are a natural result of several factors: the trend toward peer-to-peer computing, greater platform heterogeneity, and greater modularity, coupled with the trend away from synchronous communication between processes.

References: Read the following in details here. http://www.javaworld.com/javaworld/jw-01-1999/jw-01-jms_p.html

  1. Messaging services
  2. How does the JMS API fit in?
  3. The advantages of messaging
  4. Putting theory into practice



  
Total Answers and Comments: 7 Last Update: November 08, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 26, 2005 11:38:17   #1  
raj        

RE: What is the difference between Point to Point and Publish/Subscribe Messaging Domains
In point to point messaging there is only one consumer for a message and there is no need for the consumer to be active.The message remains in the queue until the message is consumed or it gets expired. 
In publish to subsribe there can be multiple consumers and the counsumer must be active to consume the message

 
Is this answer useful? Yes | No
October 08, 2005 13:26:07   #2  
tariq        

RE: What is the difference between Point to Point and ...
I think in pub/consum the client need not to be active only.
 
Is this answer useful? Yes | No
October 17, 2005 02:32:55   #3  
vijayshekar        

RE: What is the difference between Point to Point and ...

A point-to-point (PTP) product or application is built around the concept of message queues, senders, and receivers. Each message is addressed to a specific queue, and receiving clients extract messages from the queue(s) established to hold their messages. Queues retain all messages sent to them until the messages are consumed or until the messages expire

In a publish/subscribe (pub/sub) product or application, clients address messages to a topic. Publishers and subscribers are generally anonymous and may dynamically publish or subscribe to the content hierarchy. The system takes care of distributing the messages arriving from a topic's multiple publishers to its multiple subscribers. Topics retain messages only as long as it takes to distribute them to current subscribers.


 
Is this answer useful? Yes | No
March 22, 2006 12:07:41   #4  
       

RE: What is the difference between Point to Point and ...

Hi,

Point-to-point messaging model: Consider it as 1:1. Only one publisher and one subscriber all the time. Since it is asynhronous model subscriber need not be present all the time. It may have shutdown due to some reason. All messages are retained in Queue until subscriber comes up. Whereas publisher need to be active and running.

Publisher-Subscriber messaging model: Consider it as M:N. Multipler publishers:Multiple subscribers. All messages in Topic are retained until their corresponding consumers (subscribers) comes up. Again here Publishers need to be active all the time, while subscribers can join and disconnect any time. Please correct me if I am wrong.

-hmashruf


 
Is this answer useful? Yes | No
March 24, 2006 03:33:36   #5  
Shunmuga        

RE: What is the difference between Point to Point and ...
Point to Point Model is unicasting andPublish/Subscribe model is multicasting
 
Is this answer useful? Yes | No
April 24, 2007 12:07:55   #6  
Kartikey        

RE: What is the difference between Point to Point and ...
Hi All,

I have gone thu the replies from all of you and collectively the difference is correct.

P2P and Pub-Sub are two different mechanism. There could be M senders and N receivers in both the cases.
In P2P a massage will be received by only one consumer and if there is not any consumer the message will beĀ kept (It will be lost in case of server crash). Whereas in Pub-Sub every single message would be consumed by all the receivers and if thr is not any receiver message will be lost (It can be prevented by Durable subscriber).

If someone want to have fine grain on thisĀ I will recommend to refer weblogic documentation.
edocs.bea.com

or you can directly ask me your queries.

 
Is this answer useful? Yes | No
November 07, 2007 17:02:42   #7  
Ram        

Can anyone give example for each?

For example, if you are trying to retrieve Stock symbols, does it come under P2P or Pub/SUb model.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape