Hi Ziga,

rss component has only consumer, so you can use it only in from(...)

Why do you need to use timer?

Bilgin


On 13 August 2013 12:25, skazy <ziga.ska...@gmail.com> wrote:
> Hi,
>
> I am trying to use camel-rss component as follow:
>
> from("timer://timerCamel?repeatCount=0&delay=1000&period=300000")
>     // ... route steps for fetching the list of urls from database
>
> *.to("rss:http://rss.cnn.com/rss/edition.rss?splitEntries=false&consumer.delay=1000";)*
>     // ... some additional route operations
> .log(LoggingLevel.INFO, "route end");
>
> The main problem is that camel-rss component currently doesn't support the
> way to call endpoint rss:... by route method to(). See the exception bellow:
>
>
> 2013-08-13 13:13:01,819 | ERROR | NAPSHOT-thread-1 | BlueprintCamelContext
> | .blueprint.BlueprintCamelContext  130 | 91 -
> org.apache.camel.camel-blueprint - 2.10.0.redhat-60024 | Error occurr
> ed during starting Camel: CamelContext(news-covers) due Failed to create
> Producer for endpoint:
> Endpoint[rss://http://rss.cnn.com/rss/edition.rss?consumer.delay=1000&splitEntries=false].
> Reason: java.la
> ng.UnsupportedOperationException: FeedProducer is not implemented
> org.apache.camel.FailedToCreateProducerException: Failed to create Producer
> for endpoint:
> Endpoint[rss://http://rss.cnn.com/rss/edition.rss?consumer.delay=1000&splitEntries=false].
> Reason: java.lang.Uns
> upportedOperationException: FeedProducer is not implemented
>         at
> org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:395)
>
> Does anybody know the wright way to solve my problem?
>
> Thank you.
>
> Regards,
>
> Ziga
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-RSS-component-can-t-be-used-as-Producer-Endpoint-tp5737203.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to