Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 43919 invoked from network); 26 Sep 2006 10:57:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 10:57:07 -0000 Received: (qmail 97357 invoked by uid 500); 26 Sep 2006 10:57:07 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 97165 invoked by uid 500); 26 Sep 2006 10:57:06 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 97156 invoked by uid 99); 26 Sep 2006 10:57:06 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 03:57:06 -0700 Authentication-Results: idunn.apache.osuosl.org header.from=james.strachan@gmail.com; domainkeys=good Authentication-Results: idunn.apache.osuosl.org smtp.mail=james.strachan@gmail.com; spf=pass X-ASF-Spam-Status: No, hits=0.8 required=5.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.226 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from [66.249.82.226] ([66.249.82.226:24878] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 3A/70-07528-F7709154 for ; Tue, 26 Sep 2006 03:57:04 -0700 Received: by wx-out-0506.google.com with SMTP id i27so2195301wxd for ; Tue, 26 Sep 2006 03:57:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M4O1vE2Tm0JktOpQwR/LHLr1FxxmLlASC163EByMjkyr/Nf9O5OZqsLLFKQgztq3MWKHDlOXTomQKZ4pwX4ytSCeBfa01VH3eWQKj+TO8un6KP9TAq6O7C8KMk0cwYa53+8DljdJnmnqNDAAq1PQmudwvjBL+MdmPdePDrU/Ef0= Received: by 10.90.119.15 with SMTP id r15mr73376agc; Tue, 26 Sep 2006 03:57:01 -0700 (PDT) Received: by 10.90.86.11 with HTTP; Tue, 26 Sep 2006 03:57:01 -0700 (PDT) Message-ID: Date: Tue, 26 Sep 2006 11:57:01 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Problem with failover and consumer In-Reply-To: <6504492.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6504024.post@talk.nabble.com> <6504492.post@talk.nabble.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/26/06, nusa wrote: > Thanks James for a quick reply. > > failover: is only used on the client side. How and where to define it ? You only use it when configuring your JMS client - ignore it for using networkConnectors (i.e. connecting brokers to each other) as they use a failover mechanism by default http://incubator.apache.org/activemq/how-can-i-support-auto-reconnection.html > OK, sorry for incomplete info. > Everytime I startup my Tomcat, my consumer receveive a message, to be > precised > the onMessage method is invoked, WITHOUT the producer send any message. > Would that help ? I can't explain it I'm afraid. Are you using topics or queues? From your configuraiton you seem to be using queues with lastImageRecoveryPolicy (which is only intended for topics). If you are using last image recovery, then getting a message on startup is the desired behaviour :) -- James ------- http://radio.weblogs.com/0112098/