Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB13BE55B for ; Tue, 27 Nov 2012 08:31:25 +0000 (UTC) Received: (qmail 97732 invoked by uid 500); 27 Nov 2012 08:31:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 97272 invoked by uid 500); 27 Nov 2012 08:31:23 -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 97239 invoked by uid 99); 27 Nov 2012 08:31:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2012 08:31:23 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torsten@fusesource.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bk0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2012 08:31:16 +0000 Received: by mail-bk0-f43.google.com with SMTP id jf20so5126991bkc.2 for ; Tue, 27 Nov 2012 00:30:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=9zI5/utqTodFOrwpMgrILaxPsZA7Ieeqwg/mi1GZRQ4=; b=hgSf0Vs/r6ypWNam10Vzw8Z4oe3gkGV7G6Yp3pdT6/Qt40fJHvIsKsWamnr0BBu/kB qvr1PYAUBrQGK/rgwoy6+GGIPAbCqxNTM4XtzjolW9X8bxVHSIfGOwFFbUTh4Dv4/RKc YSqpnfVrjeew9bJReGbvmBXpzcRGpaDfM2+oPunFHIct8TVk0XeRbyxDcaez3DHON5ge Poje210jczeqkwSbHfsMTeagVrqdS67/1aaL0CB8YEpd8/6WEKVRTcEFyXJZx6XLqTNT 6YLfm3szLgOOYtzuZF9sj7oWMdQtRHBvzh6O3Q5B5zHk3qapWyvPxVttoM65pO7mmK/7 NRQA== Received: by 10.204.131.74 with SMTP id w10mr2291484bks.4.1354005055211; Tue, 27 Nov 2012 00:30:55 -0800 (PST) Received: from mac.fritz.box (p57BD6210.dip0.t-ipconnect.de. [87.189.98.16]) by mx.google.com with ESMTPS id d16sm9480428bkw.2.2012.11.27.00.30.53 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Nov 2012 00:30:54 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: JMS Bridge - trying to copy all messages to remote server From: Torsten Mielke In-Reply-To: <1353962485827-4659769.post@n4.nabble.com> Date: Tue, 27 Nov 2012 09:30:52 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <998E95D0-7ED9-48D3-B66D-ACFA105BB946@fusesource.com> References: <1353962485827-4659769.post@n4.nabble.com> To: users@activemq.apache.org X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQm8Ww5I3rnTVp/eWseb60i+/hWjrgQKL1Ue2yfO2F4Enw25TOJp/xiDeIqH+mNcXzRYa6dR X-Virus-Checked: Checked by ClamAV on apache.org Hello, Do you have a local consumer connected to your queue on the local = broker? The fact that only every second message seems to be passed to the remote = broker, suggests this. If you have multiple consumers on a particular queue, then messages get = pushed to consumers in a round robin fashion. Could this be your = problem?=20 Regards, Torsten Mielke torsten@fusesource.com tmielke.blogspot.com On Nov 26, 2012, at 9:41 PM, javatestcase wrote: > Been trying to get ActiveMQ 5.7.0 running on JBossAS 5.1.0 set up to = use a > JMS to JMS bridge to copy every message from a queue on the local = broker to > a remote broker (both are ActiveMQ). >=20 > I've tried numerous setups, none worked yet. The primary JBoss server > processes a request, then uses a ActiveMQ client to ultimately call a > producer.send() to the queue. Currently the queues on the local and = remote > server are named the same thing. I tried making them different with no > affect, but that could be an issue. >=20 > Currently, the messages are being "balanced" between the primary and = the > secondary. So first message goes to the primary queue, the second goes = to > the secondary queue. Clearly the bridge is functioning, but not the = way I'd > want. I'd like message one and two to both exist in the local and = remote > queue. >=20 > Here is the partial setup on the primary server. >=20 > > = =20 > > localQueueName =3D "importRequestQueue"/> > > > localQueueName =3D "importRequestQueue"/> > > > >=20 > > =20 > >=20 > >=20 > class=3D"org.apache.activemq.ActiveMQConnectionFactory"> > > > The secondary server currently has just this. I tried adding the JMS = bridge > on this side too, but it didn't seem to change the behavior. >=20 > > =20 > >=20 > > I've seen posts that seem to indicate the bridge works as I expect. = Perhaps > I am missing some additional configuration? >=20 > I've also experimented with NetworkConnector settings, and even > programatically creating a ForwardingBridge, but haven't been able to = create > the desired behavior. It seems like any of these options should work, = but > I'm stuck. >=20 > Any help would be greatly appreciated. >=20 >=20 >=20 > -- > View this message in context: = http://activemq.2283324.n4.nabble.com/JMS-Bridge-trying-to-copy-all-messag= es-to-remote-server-tp4659769.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.