Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 20415 invoked from network); 29 Mar 2009 09:40:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2009 09:40:04 -0000 Received: (qmail 98527 invoked by uid 500); 29 Mar 2009 09:40:03 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 98459 invoked by uid 500); 29 Mar 2009 09:40:03 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 98449 invoked by uid 500); 29 Mar 2009 09:40:03 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 98446 invoked by uid 99); 29 Mar 2009 09:40:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Mar 2009 09:40:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Mar 2009 09:40:02 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CA25E234C004 for ; Sun, 29 Mar 2009 02:39:42 -0700 (PDT) Message-ID: <707669315.1238319582826.JavaMail.jira@brutus> Date: Sun, 29 Mar 2009 02:39:42 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1281) ConsumerTemplate In-Reply-To: <1651803095.1232542260536.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50881#action_50881 ] Claus Ibsen commented on CAMEL-1281: ------------------------------------ Add here: http://camel.apache.org/polling-consumer.html > ConsumerTemplate > ---------------- > > Key: CAMEL-1281 > URL: https://issues.apache.org/activemq/browse/CAMEL-1281 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: Future > > > We could use a nice consumer template for nice one liners consume endpoints. > Suppose I want to consume a file based on a dynamic filename I get from a Exchange message passed on to my from a JMS Queue or the like > Then I do some custom coding in a processor to read the file. > Helping me would be a consumerTemplate where I can consume the file endpoint in one liner > Something like this: > {code} > String context = consumerTemplate.receive("file://inbox/foo.txt?directory=false", String.class); > {code} > Beware if we want to receive/poll an entire directory etc, it will generate several Exchanges. For that we might wanna group them in a GroupedExchange or support a List as return type or whatnot. > Just adding it here as in idea > Any thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.