title: Point-to-point vs publish/subscribe models in JMS
body: <p>I am new to JMS. I have started with &quot;hello world&quot; where I am publishing the message from java application on Topic and
  listening it from client (node.js Javascript). I have gone through <a href="http://en.wikipedia.org/wiki/Java_Message_Service" rel="nofollow noreferrer">this wikipedia entry</a>, but I have some questions based on my previous theoretical understanding.</p>
  <p>As per my understanding, point-to-point is the queue implementation where there can be at most one consumer subscribed on queue and can
  be consumed by that only. Neither producer nor the consumer knows about each other. Queue is hosted on message brokers in my case Apache ActiveMQ. Queue can be created by producer before publishing the message (or it can be created from console in advance).</p>
  <p>In case of publish/subscribe model, it's almost same as point-to-point except the fact we use Topic instead of queue. In this model there can be more than more consumer on the topic. Once the message is published, all the subscribers will be notified. Now if any of the subscriber, send the acknowledgment for the published message, message  will taken as consumed and it will no longer be available for new subscriber?</p>