Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 21937 invoked from network); 13 Oct 2009 19:46:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 19:46:57 -0000 Received: (qmail 72651 invoked by uid 500); 13 Oct 2009 19:46:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 72622 invoked by uid 500); 13 Oct 2009 19:46:56 -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 72612 invoked by uid 99); 13 Oct 2009 19:46:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 19:46:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bruce.snyder@gmail.com designates 209.85.220.212 as permitted sender) Received: from [209.85.220.212] (HELO mail-fx0-f212.google.com) (209.85.220.212) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 19:46:46 +0000 Received: by fxm8 with SMTP id 8so9306107fxm.45 for ; Tue, 13 Oct 2009 12:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=1bwVwSljF0l4nmJ12+JC1bHHcq2DjdqzVAo7beicllM=; b=jX3XJmF4H/JJ7BtBWZGv3g53rCDR0OTng6zyutwxv/n8lgdRaUkDtEORns/LqwVudf Xircjq/D8gENhmxv5bX9f6N/Hro/gFX4BBccfZ4p+Asxs/1ccQOAAJ4MVKWg81jpboPK t7YuH5YFR7oFZSf6SQ80ToGwSm3tJIfxdLU3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IHoGBdQlZ9l37+VLr1vd1sjIaqL6GklWqxRnUY57Mg6HeEO9Ad/IJsv8XyAvdryiv4 SjeozEWH/g2GESm76/YwhJWWc+9gaF7qTd1+A38FXMzc/GB9HVkgZNEtvlFr0nuaScmO yj9VWvYcqNtofyQIHj6LAaL4UdfkjT8YoU9cw= MIME-Version: 1.0 Received: by 10.223.4.214 with SMTP id 22mr703415fas.34.1255463185334; Tue, 13 Oct 2009 12:46:25 -0700 (PDT) In-Reply-To: <25878647.post@talk.nabble.com> References: <25878647.post@talk.nabble.com> Date: Tue, 13 Oct 2009 13:46:25 -0600 Message-ID: <7b3355cb0910131246t27b4ca0fk1486b6ee1414a8dd@mail.gmail.com> Subject: Re: one or two brokers for persistent and non-persistent delivery mode? From: Bruce Snyder To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Oct 13, 2009 at 12:56 PM, linuca wrote: > > Hi Everybody! > > I need to use persistent and non-persistent delivery mode. I read in the > documentation that "The delivery mode is set on the producer and is applied > to all messages sent from that producer. But the delivery mode can be > overridden for individual > messages." > > The persistent messages will be one large delivery (2 mb) every 15 min and > the non-persistent messages will be frequent small deliveries. > > So, what is the best option? To use one broker with persistent delivery mode > and override this behaviour for non-persistent messages (or viceversa) or to > use two brokers, one for each delivery mode? How does this affect the > performance or the complexity of the development? You don't need to use two separate ActiveMQ brokers for this purpose. A single broker works just fine for handling both types of messages. Just use the MessageProducer.setDeliverMode() method right before sending a message. Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E