Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 59B0811C95 for ; Wed, 2 Jul 2014 12:02:46 +0000 (UTC) Received: (qmail 35426 invoked by uid 500); 2 Jul 2014 12:02:45 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 35376 invoked by uid 500); 2 Jul 2014 12:02:45 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 35365 invoked by uid 99); 2 Jul 2014 12:02:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 12:02:45 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of tanteanni@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2014 12:02:42 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X2JEv-000334-RK for users@camel.apache.org; Wed, 02 Jul 2014 05:02:17 -0700 Date: Wed, 2 Jul 2014 05:02:17 -0700 (PDT) From: dermoritz To: users@camel.apache.org Message-ID: <1404302537838-5753205.post@n5.nabble.com> Subject: parallelProcessing seems to change semantic of route MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org i defined a route in java: RouteDefinition rtdmProcess = from(cepOutputWindow).process(rtdmProcessor); MulticastDefinition multicast = rtdmProcess.multicast(); //.parallelProcessing() not working log.info("Configuring route from cep window " + cepOutputWindow + " to " + rtdmUrl + " with following events: "); // loop over event names to use same data for every target event // and send it to rtdm for (String eventName : rtdmTargetEvents) { //CxfEndpoint cxf = new CxfEndpoint(rtdmUrl, new CxfComponent(this.getContext())); //cxf.setServiceClass(EventPortType.class); String cxf = "cxf:" + rtdmUrl + "?serviceClass=" + EventPortType.class.getCanonicalName(); multicast.process(rtdmSetNameFactory.get(eventName)).to(cxf); log.info(eventName + ","); } multicast.end().process(handleRtdmAnswer); rtdmProcess.setId(Routes.RouteIds.cepToRtdm.name() + cepOutputWindow); rtdmProcess.autoStartup(true); this route takes data from "cepOutputWindow" and creates a soap-message from it. This soap message must be sent to one web-service multiple times but eache message sent will have one attribute (name - sumething like a subservice) different (rtdmSetNameFactory.get(eventName)). This is working as intended. For each exchange put in i get n messages sent to ws with n different names. My problem is: as soon as i add .parallelProcessing() (in line 2) i get n messages sent to name1 and the next n messages sent to name2. So service with name1 only sees the first n and service with name2 only sees the 2nd bunch. What is wrong with my route? -- View this message in context: http://camel.465427.n5.nabble.com/parallelProcessing-seems-to-change-semantic-of-route-tp5753205.html Sent from the Camel - Users mailing list archive at Nabble.com.