aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate with RSS Feeds. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate with RSS Feeds." Watch "Hibernate with RSS Feeds." New topic
Author

Hibernate with RSS Feeds.

Vikram Takkar
Greenhorn

Joined: Oct 27, 2005
Posts: 12
We can fetch or insert data to any kind of database using database.. Is there any way with which we fetch data from RSS Feeds XMl files using Hibernate Caching..? or i have to fetch the data from RSS XML file and place it to database and then fetch it through Hibernate..? please Suggest me


Vikram Takkar<br />Programmer
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Hibernate is an Object Relational Mapping tool. RSS is not relational data, so Hibernate is the wrong tool to try to handle RSS.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Vikram Takkar
Greenhorn

Joined: Oct 27, 2005
Posts: 12
I just want to use Hibernate Caching with RSS Feeds ... so that every time user click on the link it does not have to create connection...
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

It's still the wrong technology for your problem.

Why cache RSS feeds anyway? Isn't that invalidating the reason you would use RSS?
Vikram Takkar
Greenhorn

Joined: Oct 27, 2005
Posts: 12
I want to use RSS feeds in my Web Application and i want to use hibernate caching with this ... if it is not good way .. then suggest me something for this.. that is every time user click on the Link of the RSS Feed it will not make connection it just check with the cache ..... if page is in cache load it from cache... otherwise make connection with Server.. Please suggest me..
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


that is every time user click on the Link of the RSS Feed it will not make connection it just check with the cache ..... if page is in cache load it from cache... otherwise make connection with Server

You would typically use RSS for sites whose content changes often (such as news feeds) so I'd suggest caching RSS Items is not necessarily something you should be trying to do (that is, unless there is a <ttl /> element in the Item, in which case you should briefly cache it). You certainly don't want to use Hibernate, largely because you can't. I'd look at an open source RSS parser (have a Google) - some of them will undoubtably perform TTL caching.
Vikram Takkar
Greenhorn

Joined: Oct 27, 2005
Posts: 12
Yes i want to use RSS feeds and this will include <ttl> tag.. and i will use Hibernate with this....

just read this article

http://informa.sourceforge.net/quickstart.html

and any help will be welcomed
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Hibernate is used in that article to persist RSS channels and items, not as a caching mechanism. Sounds fine if you want an archive of RSS channels and items.
Vikram Takkar
Greenhorn

Joined: Oct 27, 2005
Posts: 12
Hello .. i think i have found Good API called "INFORMA" for parsing RSS Feeds.. using Hibernate for building news channel object Model .. Please Suggest me is this Good for my Project ......

Any help will be Welcomed..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate with RSS Feeds.