Appendix A. Setting up the example
To let you work with an application that represents a real-world application, this appendix sets up a base example that you’ll use throughout the book. You’ll create an e-commerce site whose UI allows users to view product details and buy products. On the back end, the application provides a rudimentary inventory-management service. It uses the following technologies to implement this system: Spring Framework version 3.0, including Spring MVC, and the Java Persistence API (JPA) version 1.0 with Hibernate version 3.3 as the implementation. The example also uses many other packages (directly and indirectly).
The downloadable sources contain a Maven build script that automates downloading dependencies and building the required artifacts. The script shows the specific version of each of the packages used. It also includes an Eclipse project that will let you easily experiment within the IDE environment.
The example in this appendix doesn’t use any aspects except the transaction-management aspect supplied by Spring. I’ll only show interesting parts of the system, leaving out some details to avoid distracting from the main goal of the system: introducing various crosscutting functionalities. You can download the complete code from the book’s web site.