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 5D1BFDAFD for ; Wed, 19 Sep 2012 14:25:47 +0000 (UTC) Received: (qmail 58356 invoked by uid 500); 19 Sep 2012 14:25:46 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 58326 invoked by uid 500); 19 Sep 2012 14:25:46 -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 58318 invoked by uid 99); 19 Sep 2012 14:25:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 14:25:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 14:25:42 +0000 Received: by lbbgm13 with SMTP id gm13so1216045lbb.32 for ; Wed, 19 Sep 2012 07:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=Q9W6Tu7JKmqTT0LadfLUdwW9MO9MIgwMz4/VrdX9t5I=; b=hIJ9zdZtUkEBDdsHbCs5Ab/lgthDSxA1/dCVsLHBKViYTeM+8rew06AiMq8y9Q/E+Y e79g+tM3Jg1kiSHHSPlAYQYFSp6PF2DA+DTg4Jcdg38ShswgUhwW2bOjENIG9+u4poZi RC2JL9qcyKc8PiUw6utUna2fuAz1kz77XXovXzKxVCatAX/LKsr4gkTVbA9B7xmdPY3y Sv6sOwbmFYIkaJeElkunLU+cxY5cGXgZtSBBaZHguRijIL1LP8m4kk4a4dT9bRRmNykA eAzmggL4hO/0jFWN/dCevMedp/baPb85KnFv6LfkSQp9Q08bYuln380V9XSZ/HowQHwB i9ng== Received: by 10.152.132.133 with SMTP id ou5mr2821649lab.45.1348064721024; Wed, 19 Sep 2012 07:25:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Wed, 19 Sep 2012 07:25:00 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Wed, 19 Sep 2012 16:25:00 +0200 Message-ID: Subject: Re: Invoke Camel route from bean To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi You can take a look at this example http://camel.apache.org/pojo-messaging-example.html And check out the links in the bottom of the page as well. On Wed, Sep 19, 2012 at 4:19 PM, Aska Weera wrote: > Hello > > I am Camel beginner. This is my first post. I want service class > (Spring MVC controller/POJO) to call Camel routes. > > In some work flows service class expects response and some times it does not. > > what is the best way to do that? Camel Proxies or Producer template or > any other way out there? like > from("myPojo:myMethod").to("direct:start"); > > thanks > > .falik -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen