java - Spring. How does Feed Adapter get the number of rss news? -
i newbie in spring , keep trying understand it. reading rss. beans.xml is:
<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:feed="http://www.springframework.org/schema/integration/feed" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/integration/feed http://www.springframework.org/schema/integration/feed/spring-integration-feed.xsd"> <!-- rss stuff --> <int:channel id="inputrssfeedchannel"/> <feed:inbound-channel-adapter id="news" channel="inputrssfeedchannel" url="http://feeds.feedburner.com/techcrunch"> <int:poller fixed-rate="5000" max-messages-per-poll="1"/> </feed:inbound-channel-adapter> <int:service-activator input-channel="inputrssfeedchannel" ref="rssprintoutservice" method="printrss"/> <bean id="rssprintoutservice" class="enmarketnotifier.rsshandler"/> </beans>
it works. gets number of entries rss. starts somewhere , goes last news. don't understand start? how can 1 last entry example. there nothing in 12. feed adapter spring's docs.
Comments
Post a Comment