The Source for Java Technology Collaboration
User: Password:



Sean Brydon's Blog

Need a Reference Application or BluePrint for AJAX and Java?

Posted by sean_brydon on May 11, 2006 at 06:42 PM | Comments (5)

Designing and building a web application using AJAX and Java EE 5 can present a lot of challenges to developers:
  • how much AJAX to use and where to use it
  • how to apply Model View Contoller and other design patterns
  • how to build your domain model with Java Persistence APIs
  • whether to return XML or HTML or JSON to service XMLHttpRequests
  • how to leverage RSS feeds as data sources
  • how to mash up with Google Map APIs to provide location-specific searches of your data
  • how to wrap AJAX in JSF components
  • how to incorporate an existing AJAX library like DOJO toolkit
  • how to choose a convention for JavaScript you write
  • and many other design choices

The Java Pet Store 2.0, Early Access, provides a reference application illustrating the blueprints for designing a complex AJAX web application on Java EE 5. The Java Petstore 2.0 runs on a Java EE application server such as the Java EE 5 SDK or the GlassFish project.

Download the first early access public release of Java Pet Store 2.0!
The download also includes a NetBeans project to make it easy to use in an IDE.

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Short video of this here

    Posted by: alexismp on May 12, 2006 at 12:26 AM

  • Those movies are great Alexis. Its much nicer to watch a movie showing how to use Java Pet Store 2.0 with NetBeans than reading the instructions. It also helps to hightlight a feature of the early access AJAX petstore: there is a NetBeans project included in the download so its ready for NetBeans users.

    Check out the page for using Java Pet Store 2.0 with NetBeans for more detail.

    Posted by: sean_brydon on May 12, 2006 at 10:32 AM

  • is there a browsable source code (on the net) for this? i could not find it....

    Posted by: gkatz on May 16, 2006 at 01:21 AM

  • Yes, you can browse the source code online as the cvs repository for the project is online
    https://petstore.dev.java.net/source/browse/petstore/
    But it is not the easiest source code browsing.

    For some of the blueprints projects in the past we have posted a nice version of the source code online to browse.
    Since it is our first early access release their will be changes to the code so didnt make a nicely formatted version of source online. We might do that for a future release.

    The source code is included in the download
    https://blueprints.dev.java.net/servlets/ProjectDocumentList?folderID=5315&expandFolder=5315&folderID=0

    Posted by: sean_brydon on May 16, 2006 at 09:51 AM

  • I am disapointed from the petstore 2.0.


    Here the reasons why:

    In modern software programming environment the developer has only
    to worry about business programming. Much is done for visual
    effects and nice graphics in this petstore 2.0.
    I like nice effects as long as it does not bloat the
    code ... Too much pain for this.

    The inclusion of DOJO in the petstore is really ugly. What is
    the goal of the petstore 2.0? I will appreciate a reference application that
    demonstrates the flawless use of the J2EE 1.5 stack in a typical business application.

    The petstore 2.0 did not work properly with firefox and opera (8.54). Platform independency
    is important for java. Well, this is early access and the server runs on any platform,
    but the client should be platform or vendor independent too.


    The petstore 2.0 is rather a java-script reference application than a J2EE
    reference application.


    Here a suggestion: Rename the petstore 2.0 to something like
    grocery store to demonstrate AJAX and redesign the petstore to demonstrate the use
    of J2EE. In my oppinion, the petstore 1 used to be very important and answered
    many questions about J2EE 1.2.

    Posted by: bender75 on June 22, 2006 at 01:25 PM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds