Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 36467 invoked from network); 2 Jan 2011 04:26:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jan 2011 04:26:10 -0000 Received: (qmail 76269 invoked by uid 500); 2 Jan 2011 04:26:10 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 76138 invoked by uid 500); 2 Jan 2011 04:26:10 -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 76130 invoked by uid 500); 2 Jan 2011 04:26:09 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 76127 invoked by uid 99); 2 Jan 2011 04:26:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2011 04:26:09 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jan 2011 04:26:07 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p024PjJF010009 for ; Sun, 2 Jan 2011 04:25:45 GMT Message-ID: <4598392.95061293942345566.JavaMail.jira@thor> Date: Sat, 1 Jan 2011 23:25:45 -0500 (EST) From: "Tracy Snell (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-3346) Add camel-rss to camel-irc example MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tracy Snell updated CAMEL-3346: ------------------------------- Attachment: patchfile.txt - Added the logging to the route so you can see the output in the console. Some jira issues in the feed will cause a cast exception during processing. May be a bug somewhere. It only happens in the Java DSL not the XML one. I'll dig. It's not a bug in this code (since there's almost none!). - Cleaned up the readme - Changed the URL to point to the new Camel Jira RSS feed. The old one actually still worked but now returned ZooKeeper's feed. I have snippet tags in place to use them in a examples doc page. Was planning on linking to gnodet's example (which I find a lot cooler than this one!). I just went for ultra simple, look what you can do with even a very short route. > Add camel-rss to camel-irc example > ---------------------------------- > > Key: CAMEL-3346 > URL: https://issues.apache.org/jira/browse/CAMEL-3346 > Project: Camel > Issue Type: New Feature > Components: examples > Reporter: Tracy Snell > Assignee: Tracy Snell > Priority: Minor > Fix For: 2.7.0 > > Attachments: patch.txt, patchfile.txt > > > I created a super simple example using camel-rss to pull camel jira updates and feed the title to the camel-irc component. Not much to it but shows the use of the two components and how easy they are to use. Should I bundle up a patch and submit it? > {code} > from("rss:" + rssURL + options). > marshal().rss(). > setBody(xpath("/rss/channel/item/title/text()")). > transform(body().prepend("Jira: ")). > to("irc:JiraBot@irc.freenode.net/#jirabottest"); > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.