Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

listening to RSS feed

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
print map entry 34 72
hibernate example using maven 12 57
How to execute a Python program and gather return output in Java 2 40
jsp login check 12 42
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 …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

856 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