Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sample Java EE projects using Java EE design patterns

For .Net there are lots of projects that Microsoft/others provide via which one can learn how patterns etc. are implemented in real life projects.

I am looking for ones for Java EE (apart from the samples that Sun provides on:http://java.sun.com/javaee/reference/code/). Am looking for more complex ones. May be using JSF/Spring/Struts

like image 279
Aayush Puri Avatar asked Feb 04 '23 08:02

Aayush Puri


2 Answers

Sun provides BluePrints (with the famous Pet Store and the Adventure Builder applications) that show patterns and how they can be implemented using Java EE APIs. About the Java PetStore 2.0:

The Java Pet Store 2.0 is the reference application for building AJAX web applications on Java EE 5. It illustrates BluePrints for using AJAX with Java, building AJAX-enabled JSF component libraries, using Java Persistence APIs, applying MVC and other design patterns in an AJAX web app, using Mashups such as Google Maps service for location specific searches of pets and PayPal service for purchases, using an RSS feed as a data source, and lots more.

Note that for versions prior to Java EE 5, I really don't think one should consider them as representative of best/good practices but only as technology showcases. Java EE 5 has made things much better.

Still, you should have a look at Spring's PetStore sample application (which illustrates iBATIS integration if I remember well) too. It's definitely worth the check.

And you may found others samples like this one (and many others, just google for "Java PetStore").

like image 150
Pascal Thivent Avatar answered Feb 05 '23 21:02

Pascal Thivent


There are several. One possibility is the AppFuse project. It gives you some options to choose frameworks and see a full app generated. You can start here.

like image 37
Vincent Ramdhanie Avatar answered Feb 05 '23 23:02

Vincent Ramdhanie