camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tracy Snell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-3346) Add camel-rss to camel-irc example
Date Sun, 02 Jan 2011 04:25:45 GMT

     [ 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.


Mime
View raw message