Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 66638 invoked from network); 3 Aug 2009 13:49:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 13:49:28 -0000 Received: (qmail 55141 invoked by uid 500); 3 Aug 2009 13:49:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 55076 invoked by uid 500); 3 Aug 2009 13:49:32 -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 55066 invoked by uid 99); 3 Aug 2009 13:49:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 13:49:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 13:49:21 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MXxuN-0006FU-SR for users@activemq.apache.org; Mon, 03 Aug 2009 06:48:59 -0700 Message-ID: <24791188.post@talk.nabble.com> Date: Mon, 3 Aug 2009 06:48:59 -0700 (PDT) From: Joe Fernandez To: users@activemq.apache.org Subject: Re: ActiveMQ 5.2 - Forwarding only a few queues to a remote host In-Reply-To: <24790440.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: joe.fernandez@ttmsolutions.com References: <24790440.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Try setting dynamicOnly to 'true'. Doing so should preclude the brokers from forwarding messages to other brokers that do not have active consumers for the target queue. For example, when a producer on serverA sends a message to "queue.for.server.a", that message will never get forwarded to serverB, because there are no active consumers on serverB for "queue.for.server.a". If a producer on serverB sends a message to "queue.for.server.a", that message will get forwarded to serverA. Joe http://www.ttmsolutions.com Bas Verhoeven wrote: > > Hello, > > I have been working with both ActiveMQ 5.2 (also tried ActiveMQ > 5.3-SNAPSHOT) over the past week. I think I have everything pretty well > configured. I however still have some problems with network connectivity. > > First of all, let me explain why I am using a "networked" ActiveMQ setup. > > The applications that talk through ActiveMQ are in two physically > different locations (different countries). My idea was to have a queue > server at each end of the connection so that if the connection between the > two locations is unavailable for some reason (e.g. network issues), > messages would get queued up at both sides and forwarded when the > connection is up again. > > I have been reading the ActiveMQ documentation, and if I understood > correctly what I want is a "store and forward" network. I've followed the > instructions and managed to get the two servers "linked up". > > For security purposes however I only want one or two queues to be > forwarded from 'server a' to 'server b'. Luckily that seemed possible, I > ended up with the following configuration, and everything seemed to work > okay, until recently. > > For some reason when a message is sent to "some.other.queue" and the > consumer at serverA is too slow, the message is still forwarded to serverB > (and removed from serverA - which means that the consumer on serverA never > sees the message, which is a big problem for me at the moment). Even tho I > have told in my configuration that it shouldn't be doing that. > > Note that serverB does also send messages to this queue, but it shouldn't > be able to see which messages are already queued up there by non-local > producers, and it certainly shouldn't "hold them hostage". > > When I view the other queues in the ActiveMQ webadmin on serverA I also > see that there is one consumer connected (this appears to be the remote > AMQ server) and that there are no messages pending. > > Below is the configuration I use on serverA, slightly modified to exclude > sensitive hostnames and queue names: > > > > > > > > > > > > > > > > > > > > > Am I doing something wrong here? If I read the documentation correctly I > first exclude all destinations by default, and then only allow one queue > to be forwarded. But apparently that doesn't work. > > Any help would be appreciated, > > Sincerely yours, > Bas Verhoeven > > -- View this message in context: http://www.nabble.com/ActiveMQ-5.2---Forwarding-only-a-few-queues-to-a-remote-host-tp24790440p24791188.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.