Solved

listening to RSS feed

Posted on 2013-01-25
2
314 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

896 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

16 Experts available now in Live!

Get 1:1 Help Now