camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drone42 <gert.ville...@logica.com>
Subject Re: Creating a file in RSS feed format
Date Tue, 25 Nov 2008 09:34:19 GMT

... or define a script and execute it with the servicemix-scripting
component.





Drone42 wrote:
> 
> Thanks for the hints.
> 
> For the time being I think I will create a small cron job aggregating item
> files dumped to a directory into a RSS channel feed. I will use the file
> component to create the item files. Then create a Camel component that
> execute the cron job at intervals (triggered by Quartz). 
> 
> 
> 
> 
> Claus Ibsen-2 wrote:
>> 
>> Hi
>> 
>> Maybe some of the RSS frameworks can help easily to spit out RSS files
>> 
>> https://rome.dev.java.net/
>> http://incubator.apache.org/abdera/
>> 
>> However Jonathan have created a ticket to add a camel-rome component
>> in a future camel release:
>> http://issues.apache.org/activemq/browse/CAMEL-1101
>> 
>> 
>> Otherwise you could also use some templating to generate the file such
>> as Velocity, Freemarker
>> http://activemq.apache.org/camel/velocity.html
>> But they are not RSS / XML frameworks but purely templating.
>> 
>> 
>> /Claus Ibsen
>> Apache Camel Committer
>> Blog: http://davsclaus.blogspot.com/
>> 
>> 
>> 
>> On Mon, Nov 24, 2008 at 10:36 PM, Drone42 <gert.villemos@logica.com>
>> wrote:
>>>
>>> I would like to create a RSS file using Camel, i.e. route multiple
>>> messages
>>> in an asynchonious way (and possibly from multiple sources) to a file as
>>> RSS
>>> items.
>>>
>>> Problem is that the RSS file has the format;
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> <rss version="2.0">
>>>
>>> <channel>
>>> <title>RSS Example</title>
>>> <description>This is an example of an RSS feed</description>
>>> <link>http://www.domain.com/link.htm</link>
>>> <lastBuildDate>Mon, 28 Aug 2006 11:12:55 -0400 </lastBuildDate>
>>> <pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
>>>
>>> <item>
>>> <title>Item Example</title>
>>> <description>This is an example of an Item</description>
>>> <link>http://www.domain.com/link.htm</link>
>>> <guid isPermaLink="false"> 1102345</guid>
>>> <pubDate>Tue, 29 Aug 2006 09:00:00 -0400</pubDate>
>>> </item>
>>>
>>> + Here new items should be added!
>>>
>>> </channel>
>>> </rss>
>>>
>>>
>>> In other words I need to add items to the middle of an existing file.
>>> Looking at the file component, this does not seem possible at
>>> default...?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Creating-a-file-in-RSS-feed-format-tp20670349s22882p20670349.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Creating-a-file-in-RSS-feed-format-tp20670349s22882p20677826.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message