Solved

listening to RSS feed

Posted on 2013-01-25
2
315 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
ID: 38835758
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
ID: 38837522
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

813 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

18 Experts available now in Live!

Get 1:1 Help Now