Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Camel RSS component can't be used as Producer Endpoint

$
0
0
Hi,

I am trying to use camel-rss component as follow:

from("timer://timerCamel?repeatCount=0痩=1000ꗪ=300000")
// ... route steps for fetching the list of urls from database

*.to("rss:http://rss.cnn.com/rss/edition.rss?splitEntries=false犉枫.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늙抴䧭긧=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늙抴䧭긧=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

Viewing all articles
Browse latest Browse all 5648

Trending Articles