Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

listening to RSS feed

Posted on 2013-01-25
2
Medium Priority
?
351 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 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

972 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