Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 7244 invoked from network); 8 Apr 2011 19:47:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2011 19:47:01 -0000 Received: (qmail 73302 invoked by uid 500); 8 Apr 2011 19:47:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 73274 invoked by uid 500); 8 Apr 2011 19:47:01 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 73266 invoked by uid 99); 8 Apr 2011 19:47:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 19:47:01 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 19:46:54 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q8HdY-0008DO-GZ for users@activemq.apache.org; Fri, 08 Apr 2011 12:46:32 -0700 Date: Fri, 8 Apr 2011 12:46:32 -0700 (PDT) From: nnprasad To: users@activemq.apache.org Message-ID: <1302291992506-3437295.post@n4.nabble.com> In-Reply-To: References: <1302194802878-3433946.post@n4.nabble.com> <10D07CDD-08C9-49E6-B930-5F4ACBEE1C51@gmail.com> <1302198103954-3434069.post@n4.nabble.com> <1302200647206-3434173.post@n4.nabble.com> <5B0DFEB9-9F6F-4490-B7C7-9B9217B92B53@gmail.com> <1302278154537-3436741.post@n4.nabble.com> Subject: Re: Can I use Active MQ in this Regard? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Matt gave you a very good answer, Here is another in other angle. Hope you know what a DATABASE is...so I am starting with a queue Queue: Is a virtual "post box" (just like in our post office) maintained in ActiveMQ's JVM, with which you register as a user(Consumer). So the senders will send letters (messages) to that post box irrespective of whether you are listening to it or not. just like you friend sending a letter to your post box address with out knowing you are there or not. But whenever there is a message in your queue, as a registered consumer you will be notified and your onMessage() method will be executed (the other way you poll the queue for any new message is also possible). Here that post box is sharable like more than one consumer can register to that queue but ONE MESSAGE WILL GO TO ONE CONSUMER. If your queue is in PERSISTENT mode it will store a copy of the message it got from senders, it will store it to the connected database (you need to configure this in activemq.xml). it eventually delete DELIVERED messages from that database table. Topic: Is like a TV News Channel, What ever message it get from senders, it will be sent/shared to all registered VIEWERS of that TV News Channel (Topic) . Topic is a concept of broadcasting I highly recommend ActiveMQ in Action Book for you. -Nag -- View this message in context: http://activemq.2283324.n4.nabble.com/Can-I-use-Active-MQ-in-this-Regard-tp3433946p3437295.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.