I am new to JMS.I have started with hello world where i am publishing the message from java application on Topic and listening it from client(node.js javascript).I have gone thru http://en.wikipedia.org/wiki/Java_Message_Service. Now i have got some doubts based on my previuos theortical understanding and what is suggested at above link?
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 active MQ. Queue can be created by producer before publishing the message(or it can be created from console in advance).
In case of Publish/subscribe Model, its almost same as PointToPoint except the fact we use Topic instead of queue.In this model, there can be more than more consumer on 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?