Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5EA0A200C85 for ; Tue, 30 May 2017 13:23:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5D320160BC9; Tue, 30 May 2017 11:23:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A3416160BC1 for ; Tue, 30 May 2017 13:23:04 +0200 (CEST) Received: (qmail 49991 invoked by uid 500); 30 May 2017 11:23:03 -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 49980 invoked by uid 99); 30 May 2017 11:23:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2017 11:23:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1365E1A00DD for ; Tue, 30 May 2017 11:23:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FApg5V3rWivu for ; Tue, 30 May 2017 11:23:02 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EE7A95F36B for ; Tue, 30 May 2017 11:23:01 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mwork.nabble.com (Postfix) with ESMTP id 7E5AD45DB7E16 for ; Tue, 30 May 2017 04:23:01 -0700 (MST) Date: Tue, 30 May 2017 04:23:01 -0700 (MST) From: Caranthir To: users@camel.apache.org Message-ID: <1496143381511-5801360.post@n5.nabble.com> Subject: Difference between WireTap and to MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Tue, 30 May 2017 11:23:05 -0000 Hello, I have a problem. In my camel application I have two JPA endpoints. Where I get some values from one database and insert it to the other one. So I defined jpa endpoint for one database and jpa2 for the other database. i get some value with from(jpa://...).process( ... ).to(direct:e) then from(direct:e).process( ... ).to(jpa2:// ...).to(direct:d) then from(direct:d).to(jpa://..) When I do this the last insert to the jpa component doesnt work as expected and tries to insert to jpa2 instead of jpa. I was pretty confused. It took a few days to resolve this issue. When I only changed to value to WireTap, it started working as expected and inserted values to jpa . from(jpa://...).process( ... ).to(direct:e) then from(direct:e).process( ... ).to(jpa2:// ...).wireTap(direct:d) then from(direct:d).to(jpa://..) Is there a difference between to(direct:d) and wireTap(direct:d) that is not clear to me? Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Difference-between-WireTap-and-to-tp5801360.html Sent from the Camel - Users mailing list archive at Nabble.com.