my dog learned polymorphism*
The moose likes Java in General and the fly likes Atom feed with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Atom feed with Java" Watch "Atom feed with Java" New topic
Author

Atom feed with Java

kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
Hi,

I am wondering how can i publish ATOM Feed using java. I want to give the option of subscribing ATOM FEED to all items which are getting displayed in some table(like books as line items).

Any help? Is this right forum to ask this question

Thanks,
Candy


SCJP1.4,SCBCD,SCEA,CNA
Failures are practice shoots for success.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I believe you could create the sign in feed button with an action that will record the email in the database. You will have a job that will be fired after a new post/item is created. This job will search for new itens and the related people that will want to receive that notification.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Check out the Rome library.
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
Hi Herbert,

I believe what you are suggesting is emailing that something got changed. But i want to use ATOM Feed technology for it so that he can check that something got updated using some ATOM Feed client.

Best Regards,
Kundan
kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 322
Hi,

Now my understanding is a bit clear but i have one question.

When a url is given to client for subscribing to Atom Feed then we create a atomfeed xml on server and keep updating it with change in subscription

OR

when a request from ATOM FEED client comes to that URL then we dynamically create atom xml and return.

?

PLease clarify if someone has any experience with RSS/Atom feed.


Best Regards,
candy
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
The feed can be static (an XML file that gets periodically updated) or dynamic (created on demand when it is requested) - both approaches are possible. Which ones makes sense fo you depends on your circumstances (like how personalized the feeds are).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Atom feed with Java