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 8E4F4111A3 for ; Fri, 25 Jul 2014 07:20:26 +0000 (UTC) Received: (qmail 21317 invoked by uid 500); 25 Jul 2014 07:20:25 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 21264 invoked by uid 500); 25 Jul 2014 07:20:25 -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 21251 invoked by uid 99); 25 Jul 2014 07:20:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2014 07:20:25 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of gsharma84@gmail.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; Fri, 25 Jul 2014 07:20:20 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XAZnM-0005WW-3T for users@camel.apache.org; Fri, 25 Jul 2014 00:20:00 -0700 Date: Fri, 25 Jul 2014 00:20:00 -0700 (PDT) From: nettome To: users@camel.apache.org Message-ID: <1406272800098-5754431.post@n5.nabble.com> In-Reply-To: References: <1406204566118-5754376.post@n5.nabble.com> <1406205448666-5754380.post@n5.nabble.com> <1406207357194-5754386.post@n5.nabble.com> <1406219077622-5754406.post@n5.nabble.com> Subject: Re: Not able to define processor in Camel MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yes, I'm able to read the file.. System.out.println(file.getName()); InputStream in = new FileInputStream(file); routes = context.loadRoutesDefinition(in); context.addRouteDefinitions(routes.getRoutes()); in the above code, I'm getting my route.xml file defined as below - but, my CacheComponentProducer is not invoked. Also, when I'm doing the same thing in a java program through JAVA DSL, its working. My CacheComponentProducer is getting called. where should i look for it... -- View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-define-processor-in-Camel-tp5754376p5754431.html Sent from the Camel - Users mailing list archive at Nabble.com.