Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 88761 invoked from network); 9 Oct 2007 20:18:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 20:18:51 -0000 Received: (qmail 28428 invoked by uid 500); 9 Oct 2007 20:18:39 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 28415 invoked by uid 500); 9 Oct 2007 20:18:39 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 28406 invoked by uid 99); 9 Oct 2007 20:18:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 13:18:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Andreas.Guther@markettools.com designates 72.5.112.150 as permitted sender) Received: from [72.5.112.150] (HELO mail.markettools.com) (72.5.112.150) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 20:18:43 +0000 Received: from WDCCPMAIL01.markettools.com ([10.64.64.33]) by mail.markettools.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 9 Oct 2007 13:17:59 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Receipient *List* seems not to work in Camel 1.2.0 Date: Tue, 9 Oct 2007 13:17:23 -0700 Message-ID: <3FB08D6A21B3EC4D8749EF6D9E62627801E76926@WDCCPMAIL01.markettools.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Receipient *List* seems not to work in Camel 1.2.0 thread-index: AcgKsWbm2h0bkmPxReWyV5trFG3ypg== From: "Andreas Guther" To: X-OriginalArrivalTime: 09 Oct 2007 20:17:59.0331 (UTC) FILETIME=[7C70B730:01C80AB1] X-Virus-Checked: Checked by ClamAV on apache.org Either I am getting something wrong or the current 1.2.0 version has some problems. My observation is that the RouteBuilder from the provided spring example does only write into the last queue of the given to list. See my altered MyRouteBuilder class at the end of this message from the following location: C:\dev\svn.apache.org\repos\asf\activemq\camel\tags\camel-1.2.0\examples \camel-example-spring>svn info Path: . URL: https://svn.apache.org/repos/asf/activemq/camel/tags/camel-1.2.0/example s/camel-example-spring Repository Root: https://svn.apache.org/repos/asf Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 Revision: 582255 Node Kind: directory Schedule: normal Last Changed Author: chirino Last Changed Rev: 581980 Last Changed Date: 2007-10-04 11:24:52 -0700 (Thu, 04 Oct 2007) Please let me know if you think this is a bug and I will file a Jira issue. I have no unit tests for this. I was running against a local ActiveMQ 4.1.1 broker with tcp instead of the vm protocol as it comes in the example. public class MyRouteBuilder extends RouteBuilder { public static final String Q1 =3D "jms:test.MyQueue.ONE-1"; public static final String Q2 =3D "jms:test.Number.2"; public static final String Q3 =3D "jms:test.Number.3"; /** * Allow this route to be run as an application * * @param args */ public static void main(String[] args) { new Main().run(args); } public void configure() { System.out.println("**** Configuring ****"); // lets populate the message queue with some messages from("file:src/data?noop=3Dtrue").to(Q1); //from(Q1).to("file://target/test?noop=3Dtrue"); // works fine and writes into file system //from(Q1).to(Q2); // works also fine, writes into Q2 //from(Q1).to("file://target/test?noop=3Dtrue", Q2); // writes to Q2 but not to file //from(Q1).to(Q2, "file://target/test?noop=3Dtrue"); // writes to file but not to Q2 from(Q1).to(Q2, Q3); // write to Q3 but not to Q2 // set up a listener on the file component from("file://target/test?noop=3Dtrue"). bean(new SomeBean()); } public static class SomeBean { public void someMethod(String body) { System.out.println("Received: " + body); } } }