Introduction: Apache Geronimo's latest version 1.1 has a number of compelling new features, the core of which is the control reversal (inversion of CONTROL,IOC) model, which is also the core model of the Spring framework. The Spring framework was developed under the Apache License agreement and is a layered java™platform, Enterprise Edition (Java EE) and Java 2 Platform, Enterprise Edition (J2 ee™) application framework. The Spring framework is built on the basis that Java EE should be easier to use. This series of tutorials is divided into six parts, covering everything from the Spring framework to the back end, including how to implement its functionality with Apache Geronimo. This tutorial is part 1th of this series of tutorials, which will introduce you to the architecture of the Spring framework and explore the intersection between Geronimo and spring.
Before you start
This series of tutorials is intended for readers who want to learn more about the Spring framework and want to know how to play their powerful Java EE developers on the Apache Geronimo application server.
About this series
This series of six-part tutorials describes the Spring framework and how to use it in Geronimo. First, we'll look at the different Spring framework methodologies and how these methodologies work on the Geronimo server. In this series of tutorials, you will develop and deploy a personal Address Book application. The application includes the following features:
Show Address Book
Show details for each entry
Add a new entry to the Address Book
Edit, modify, and delete an entry
In part 1th, we introduce the various modules of the Spring framework and the relationship between the modules and the Java EE application development work on the Geronimo application server. The methodology based on the Spring framework is also elaborated.
Part 2nd reviews How to use the Spring framework to build the first skeleton-only application on Geronimo.
In part 3rd, the Geronimo application for part 2nd was extended by adding Java database Connectivity (jdbc™) support provided by the Apache Derby db. You'll also learn how to use IBatis to integrate object-relational mappings into this application.
In Part 4, you will be exposed to the content of spring aspect-oriented programming (aspect-oriented PROGRAMMING,AOP) and the Spring WEB framework. By using spring AOP, you can turn any object managed by the spring framework into aspect-oriented. This tutorial relies on the declarative transaction management services provided by Spring AOP.
The 5th part examines the Spring model – View – Controller (MVC) architecture. This tutorial gives readers an overview of the MVC Framework and Web view of spring MVC, giving readers a rudimentary understanding of spring MVC.
Part 6th of the end of this tutorial describes how to use the JavaServer page™ (jsp™), Velocity, Tile, and PDF export functions through the Spring framework. You will use and experience the various Web views built into Spring MVC.
About this tutorial
Spring is more than just another application framework. It incorporates the best practices of the experienced architects in the application, and is a carefully thought-out framework. This framework is first introduced by Rod Johnson's Expert one-on-one Java EE design and Development (see the Resources section for a link). The industry does not immediately understand and acknowledge the importance of the separation of object dependencies, implementations, and configuration features provided by Spring, but the concept has now been widely recognized, making Spring one of the most compelling frameworks in the near future.
How to decouple components is a thorny issue for application system analysts and developers. Many frameworks try to solve this problem, but none of them succeed. Since both Spring and Geronimo use IoC as the core design pattern, it is now possible to achieve this level of configuration separation. Spring also simplifies testing for each component. For components that are developed and deployed on Geronimo with the Spring framework, it is easier to test separately because these components are decoupled from the components that it may depend on.
This tutorial describes the various modules of the Spring framework, as well as the relationships between the modules and the Java EE application development work on the Geronimo application server, to prepare for the follow up tutorials.