Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Atom feed with Java

 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Moores
Bartender
Posts: 2789
38
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the Rome library.
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2789
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic