Solved

listening to RSS feed

Posted on 2013-01-25
2
311 Views
Last Modified: 2013-02-06
hi all

I have a rss feed, I am able to connect the RSS feed using java using
apache.commons.digester API
Is there any API in java to listen to that rss feed (as an when it is updated) ?]

Thanks in advance
0
Comment
Question by:royjayd
2 Comments
 
LVL 10

Accepted Solution

by:
ivanovn earned 375 total points
Comment Utility
I don't think you are able to get push notifications from RSS. A work-around would be to add a "listener" that polls the feed at a high frequency, and pushes the information to your application only when it detects a change. But this is just masking the polling that you are already doing.

I am not aware of the exact solution you are looking for.
0
 

Author Comment

by:royjayd
Comment Utility
thanks for replying.

>>But this is just masking the polling that you are already doing.

I am not doing any polling. I want to listen to the .rss url.

Right now i am just using HttpURLConnection to call the abc.xyz.rss url and get the data.
something like
URL url=new URL(abc.xyz.rss);
HttpURLConnection httpSource=(HttpURLConnection)url.openConnection();
Channel channel=(Channel)digester.parse(httpSource.getInputStream());
Item rssItems[]=channel.findItems(); //this contains items from rss
     
I want to listen to abc.xyz.rss  as and when abc.xyz.rss  is updated which is the requirment in our project


thanks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now