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 AA342200B62 for ; Fri, 12 Aug 2016 15:00:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A67D1160AB0; Fri, 12 Aug 2016 13:00:03 +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 EB621160AA6 for ; Fri, 12 Aug 2016 15:00:02 +0200 (CEST) Received: (qmail 33542 invoked by uid 500); 12 Aug 2016 13:00:02 -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 33531 invoked by uid 99); 12 Aug 2016 13:00:01 -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; Fri, 12 Aug 2016 13:00:01 +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 3B5C81A72FA for ; Fri, 12 Aug 2016 13:00:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.312 X-Spam-Level: ** X-Spam-Status: No, score=2.312 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id G0j0snEgyyfb for ; Fri, 12 Aug 2016 12:59:59 +0000 (UTC) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 8AE485F484 for ; Fri, 12 Aug 2016 12:59:58 +0000 (UTC) Received: from JanmySN ([77.10.103.128]) by mrelayeu.kundenserver.de (mreue103) with ESMTPSA (Nemesis) id 0LfGuG-1asIoX2FdQ-00ojm1 for ; Fri, 12 Aug 2016 14:59:57 +0200 From: =?iso-8859-1?Q?Jan_Mat=E8rne_=28jhm=29?= To: References: <1470934315836-5786330.post@n5.nabble.com> In-Reply-To: <1470934315836-5786330.post@n5.nabble.com> Subject: AW: Any issues having Camel Processor doing all the Works Date: Fri, 12 Aug 2016 14:59:46 +0200 Message-ID: <001c01d1f499$67b14720$3713d560$@de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdH0ec0eR3Kkwlm3SV+J5AEkGw2aPAAHnlfw Content-Language: de X-Provags-ID: V03:K0:yuotZAa51yrN264TnnXTRE4Uax3hcNL6wxBv5LtsYEyhnkNw43X WZ6ztxDvhtwf698GjLeVHpio5BATSYE4NMN4ZAXzobzPMbyzgH6eBtZkskiU0yLT3l9RRfL X8SmZUSpSyadGIPDiHB0tWuZHVVwbYuZyUaRh6Mt4TYihmZ0hjUs5b7J9OJY9l23MWyKI6m XSqjncCjWlmPmjbwN34pg== X-UI-Out-Filterresults: notjunk:1;V01:K0:nHw/8h3mwtQ=:NQL9qEqtbh6vaSKxffePKv abXJuRTQD5f3HouxR08w4pOTBRKrzXbuCGAXWLbdMG1lH2QR5UsFMYlZHJ0UfzVqNaWgdptso 932gvMXvg6+J7En2BDeWBSRqXXG7BZASaDJvJ+f8NKJ71mHv1vXIcvImrDZ5CbsJ9TYSkliIV WX6lwAxRTH8pE3ER2/KSKCwT5LbxQ0+WywzCxJJS3VCis9I1UydxJOp7lEP89YcqgLX17WiuE OpUmpFOUFTCuy00xkE5X+apjF3+3miyKJaQfxOHPGXKpu/yEg9NWfXWxb9dZ2O9GmQGQShZRE g+l2Q6FFeqPDA4VwaIZvf7IcZtG83y+IEDQPBfJdXnnDWqmNzJvld9lT8niWi+PeYeZvuCy8Q scLoWEk/OhsPyjOUsDZLckBf7ZAH2wIlSJqIjKz85rTTN+BoWBRJzX9nHYaEkDDCoun/+1v6D QFAl8TS6C4hj5IxpE044sngiLHyNWCd3WR+dJtSkA9kWbRyMi91KBTSLqr2vXBB/P6nfSNRrk /cjQ1Capo+1dB0gpJ1MjuQOhbMb5PkQg4mlKKauC27GqiDsLhR6lIpRiLfWMkJwT9oG9WUwVP Cz4Q4oEB2H8wwJstOQ4YyQDLxyCk5+oXG2O+l83vx5n15gFX5PwO0Tb0YLXX+3aIlXymYpbdJ IczRHpGgeMDNQclm+aKz4WTnIg1FayOWpuHC0AwB4qFj4iBKoml78tRNyLYX2LqBbDCi+iXhm +rdO6A+EL6G2icJF archived-at: Fri, 12 Aug 2016 13:00:03 -0000 Of course you could do all in plain Java. Using Camel introduces a lot of dependencies and you have to think about = its benefits and drawbacks (as by each architectural decision). What you earn (IMO): - code is easier to read - easier asynchronous behaviour - easier integration with other technologies And of course, learning new things requires time. You have to decide if it's worth (for you/your project). Jan > -----Urspr=FCngliche Nachricht----- > Von: JamesG [mailto:ehchn1@hotmail.com] > Gesendet: Donnerstag, 11. August 2016 18:52 > An: users@camel.apache.org > Betreff: Any issues having Camel Processor doing all the Works >=20 > Hi, >=20 > Instead of doing the routing using DSL, web service calling with CXF > component, enriching, intercepting, etc , why not just have a = Processor > and put all the java codes there? For a Camel beginner, this seems > pretty much easier to get the things done (definitely for those with > java background), but I am not sure how effective or correct this > approach is. >=20 > Below is a sample scenario: > 1) Call a web service to retrieve some result. > 2) Based on the result, decide whether to proceed calling another > service. >=20 > If I would to achieve the above through Processor, it's merely few > lines of codes. > But if I'm using DSL to do it, the work is going to be more (cxf > endpoint, enrich, when, simple). >=20 > Appreciate any advises and comments. >=20 >=20 > Thanks in advance. >=20 >=20 >=20 >=20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Any- > issues-having-Camel-Processor-doing-all-the-Works-tp5786330.html > Sent from the Camel - Users mailing list archive at Nabble.com.