Petstore using Java EE 6 ? Almost!

Antonio Goncalves, a Java Champion, JUG leader, and a well-known author, has started building a Petstore-like application using Java EE 6. The complete end-to-end sample application will build a eCommerce website and follows the Java EE 6 design principles of simple and easy-to-use to its core. Its using several technologies from the platform such as JPA 2.0, CDI 1.0, Bean Validation 1.0, EJB Lite 3.1, JSF 2.0, and JAX-RS 1.1.

Pet Store

The two goals of the project are:

• use Java EE 6 and just Java EE 6 : no external framework or dependency
• make it simple : no complex business algorithm

The application works with GlassFish and JBoss today and there are plans to add support for TomEE.

Download the source code from github.com/agoncal/agoncal-application-petstore-ee6. And feel free to fork if you want to use a fancy toolkit as the front-end or show some nicer back-end integration.

Some other sources of similar end-to-end applications are:
Java EE 6 Tutorial
Java EE 6 Galleria
Java EE 6 Hands-on Lab

Comments:

Many thanks to Antonio for this precious "blueprint".
I think I need help to get it running: I deployed the war on my GlassFish 3.1.2 but I get the following error:

javax.security.auth.login.LoginException: Nessun LoginModules configurato per SimpleLoginModule

It seems it doesn't recognize the custom LoginModule. It is not clear wether some configuration on the application server is needed (the readme says simply "asadmin deploy target/applicationPetstore.war" and this is what I've done).

Thanks in advance for your help!

Posted by Nicola on June 12, 2012 at 02:51 AM PDT #

Post a Comment:
Comments are closed for this entry.