 |
As the new Java.net infrastructure contains project-level wikis, this main wiki will be shut down in the near future. For wiki page export and general wiki questions please contact the site admin at communitymanager@java.net.
Example Applications
Here the term "example application" has a very specific meaning. An example application has its primary audience as the programmer reading the code, not the end user. Its purpose is to provide an example implementation worthy of imitation, because it
- demonstrates good engineering techniques
- illustrates aspects of some widely used libraries
- has items which may be reused across a significant number of similar applications
- has an overall design which fairly typical for that flavour of application (web app, GUI app, J2ME app)
This change of emphasis affects many items
- the code needs to be freely available
- the feature set should be limited to items which contribute significantly to illustrating an important point. Features should not be included if they do not make such a contribution. As a result, the code base will have a higher density of useful information.
- the implementation should be of intermediate size - large enough to be non-trivial, but not so large that it is too difficult for an "average" programmer to understand. (It is impossible to be precise about this, but perhaps "under 20" classes is probably a bit small, and "over 100" is probably getting on the large side.)
This topic is meant to be a collection of links to such applications, and for discussion thereof. Ratings and evaluations would be useful as well.
Please add to the list:
Example Web Applications
- Virtual Shopping Mall - from Oracle Technology Network
- Sun's Adventure Builder
- Sun's Petstore
- xPetstore - "xPetstore is a re-implementation of Sun Microsystem PetStore based on xDoclet. This demo application demonstrate how to use open source frameworks to build WODRA (Write Once, Deploy and Run Anywhere) J2EE applications."
- Struts Examples
- web4j - Both an example web application and a simple, effective framework for building small- and medium-sized web apps. Includes sample deployment, javadoc with highlighted source code, and zip file of development directory.
- MessageBoard - JSTL, Action classes, JDBC with MySql database. About 40 classes, 20 JSPs. (Design is a bit inferior to the web4j tool mentioned above, but still useful.)
Example GUI Applications
Example J2ME Applications
-- JohnOHanley
|