Java Enterprise Edition appeared end of the Nineties and brought to the Java language a robust platform for companies’ enterprise applications. Put into question on each new version, badly understood or misused, competed by open source frameworks, Java EE knew to use these criticisms to improve and find a balance in its version 5. This book proposes to discover the innovations of this new version, and to examine how to assemble them to develop an e-commerce website.
The objective of this book is to guide you in the development of a complete e-commerce website using Java EE 5, while answering the question “how to assemble these specifications? “. The application, inspired from the Java PetStoreof Sun, follows the coding and architecture best practices: layers, loose coupling, and enterprise design patterns.
This book covers a broad range of the Java EE 5 specifications, uses the JDK 5, design patterns and the GlassFish application server to execute the application. It is illustrated with UML diagrams, extracts of code and pages are accompanied by notes, remarks and references to look further for information. The development of this site is made in an incremental way to apprehend each specification progressively.
This work is addressed to readers with an advanced level of Java who hav some knowledge of Web development. It is also aimed to architects who wish to understand how to imbricate different APIs from Java EE 5 to carry out an Intranet-Internet application. Lastly, beginners and students will also find there their way by using the multiple references spread throughout the book.
Like the other books of the Cahiers du Programmeur collection edited by Eyrolles, this book uses an elaborate page-setting of two columns allowing many asides.
Structure of the book
Chapter 1 presents the case study of an e-commerce application inspired by the Sun’s Java PetStore Blueprint. The fictitious company Yaps wants to computerize its activity of selling domestic animals. The application uses a webapp for the customers, a Swing app for the employees and needs to exchange data with external partners. UML, Use Cases.
Chapter 2 concentrates on the technical and software architecture of the application called Yaps PetStore. This chapter briefly presents the tools and APIs used for the development. Java 5, HTML, XML, Java EE 5, Blueprint, Design Patterns, UML.
The installation and the configuration of the tools are done in chapter 3. JDK, Ant, GlassFish, Derby, TopLink.
In chapter 4 we develop the persistent objects of the application. JPA, Entity Bean.
Chapter 5 adds a business layer to handle the persistent objects. Stateless EJBs, EntityManager, JPQL.
Chapter 6 explains how to compile and deploy the application so that it can be used by a Swing client. Ant, JNDI, Swing, GlassFish, TopLink, Derby.
Chapter 7 creates a first version of the Web application which makes it possible to visualize the articles of the company, and to manage customers account. JSP, JSTL, JSF, Expression Language, Unified Expression Language.
Chapter 8 adds a shopping cart so that customers are able to buy domestic animals on line. Stateful EJB.
Chapter 9 deals with B2B exchanges between the Yaps company and its external partners (bank and transport). Web Service, WSDL, SOAP, JAXB.
Asynchronous tasks, like printing the purchase order or sending emails, are developed in chapter 10. JMS, Message Driven Bean, JavaMail.
Buy the book
The book is on sale in all the french bookshops that have a Java ray (36?). You can buy the book on the website of Eyrolles, Le Monde en Tique, Amazon, Fnacand others.
Download and install the application
Download the code of the application.
Then follow the instructionsto deploy the application on GlassFish and Derby.
For those of you who would like to have the UML diagrams of the application, you can download the Community edition of Visual Paradigm and visualize the application project(.vpp file).
Software used to develop
Personally I’ve used Intellij Ideato develop the code that goes with the book. I’ve been using it for a long time at work. I’ve asked the guys of JetBrain if they would give me license for free so I could use this great IDE for my book. They accepted. I would like to thank them and tell them how good their tool is.
The UML diagrams that you see all over the book are made with Visual Paradigm. I’ve used the plugin version for Intellij Idea. Visual Paradigm makes you love UML, it’s so simple to draw a diagram, to generate code or reverse ingineer it. Again, I would like to thank the company which gave me a license for the product.
2 thoughts on “Java EE 5 Book”
Is there some plans regarding translating this book in English?
No, there are no plans. I’m working on a Java EE 7 book but will have a different structure