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 84852C2B1 for ; Thu, 18 Jul 2013 15:59:10 +0000 (UTC) Received: (qmail 33812 invoked by uid 500); 18 Jul 2013 15:59:10 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33571 invoked by uid 500); 18 Jul 2013 15:59:09 -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 33558 invoked by uid 99); 18 Jul 2013 15:59:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 15:59:08 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrawal.tarun23@gmail.com designates 209.85.128.178 as permitted sender) Received: from [209.85.128.178] (HELO mail-ve0-f178.google.com) (209.85.128.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 15:59:03 +0000 Received: by mail-ve0-f178.google.com with SMTP id pb11so2649166veb.37 for ; Thu, 18 Jul 2013 08:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=A64tJSMT1joVL3SMFclyLlaHOOoLaawamalMSIhrmCQ=; b=M3/DEwZJ5wMGRFcF+Ao9zqSlQmehTFIMXpbyzhlvlQf7CRDa6j/9Ntl7fc3o0eTSnz DLNALy21AkURiYvqIs/uB2+bAHGsPUMRfl+z+3buq7lqZM4yOFxIfe2vgCM7PkGpCt+o iWwuNMdW+7uIIh2Y1Pm2LD1z7kQjl6ygHUy9j24TDekl3a5PLHr9KbLtApShZ/rxhIKW x7V5oK0vcMPdpnndMzSDwz5UYJVyrD+0eQ6zQCL8NjtfWwOu9NHj1g3srGiNIGVSJGvu pIqm2vzPsVIQtYiNshh9mXlIM/zxCHVFEKMsDwvJhy94x0p3HlS+0J1KXkjg+J/Wskij Ixag== X-Received: by 10.52.17.115 with SMTP id n19mr3520551vdd.113.1374163122806; Thu, 18 Jul 2013 08:58:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.239.207 with HTTP; Thu, 18 Jul 2013 08:58:21 -0700 (PDT) From: Tarun Kumar Date: Thu, 18 Jul 2013 21:28:21 +0530 Message-ID: Subject: invoking camel route To: users Content-Type: multipart/alternative; boundary=bcaec502dc26cc7a1d04e1cb48e2 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec502dc26cc7a1d04e1cb48e2 Content-Type: text/plain; charset=ISO-8859-1 Hi, I want to invoke camel route from java code. CamelContext doesn't seem to have any method to invoke route. Here is what my code looks like: @Autowired private CamelContext cc; public void testMethod() { System.out.println(cc.getRouteStatus("route1")); // prints true // how to invoke this route - route1 from here? } --bcaec502dc26cc7a1d04e1cb48e2--