Sun Java Solaris Communities My SDN Account Join SDN
 
Web Developer Resource Center: Samples
Project Phobos Reddit/Del.icio.us Mashup Demo
Web Resource Center: Samples

The BluePrints Team
The Java BluePrints projects presents the programming model, guidelines and examples for designing enterprise quality applications and web services using Java technologies. Some of the areas covered are Ajax-enabled Web 2.0 applications, Persistence, JavaServer Faces, SOA with BPEL, and WS-Security. Current team members include Mark Basler, Sean Brydon, Smitha Kangath, Greg Murray, Inderjeet Singh and Yutaka Yoshida.

 

Sample, Applications, Components & Widgets

Project Phobos Reddit/Del.icio.us Mashup Demo - Click to Run It!Project Phobos Reddit/Del.icio.us Mashup Demo
 
The Reddit/Del.icio.us mashup demo consists of a background task that every ten minutes fetches the RSS feed for the "what's hot" page on reddit.com and stores the resulting information in the database. The data is then rendered to the demo page. Additionally, the task attempts to retrieve the del.icio.us tags for each story. If it finds any, it makes them available via a pop up.
 
To use, you can drag an entry onto the heart icon to mark it as a favorite story. Dragging an entry onto the folder icon results in it being marked as archived. And as you would expect, dragging an entry onto the trashcan icon deletes it. You can also click on any of those icons to see a list of all the stories that carry that tag. You can bookmark a story on your del.icio.us account by dragging it to the del.icio.us icon. Finally, you can drag an entry onto the document icon to attach a comment to it.
 
In addition to demonstrating the capabilities of Phobos server-side framework in general, the Reddit/Del.icio.us mashup demo highlights the use of the following technologies in Phobos:
  • Server-side scripting using JavaScript supported by the Mozilla Rhino javascript engine
  • The DOJO javascript library for use on the client
  • RSS feed accessed through the Rome libraries
  • Direct access to Java libraries
  • Built-in persistence support from Phobos server-side framework
    Run it!  |  Feedback
 
Reddit/Del.icio.us Mashup Demo by The Project Phobos Team