Goal
Tutorial project on how to use the Spring 2 technology on an existing J2EE project. This project contains the documentation on how to setup the initial project and a step-by-step tutorial on how and what to convert.
The code migration path is available in several step-by-step projects. Starting with the initial setup, upto the fully migrated version to Spring and Hibernate.
The project used is the 1.0.5 version of the J2EE Adventure Builder, which we will convert to Spring using the Spring Framework. For all the other components we will use as much of Spring (and related projects) as possible.
The architecture is described here. It describes the highlevel architecture of the Adventure Builder project. For this migration we are going to focus on the web application and Order Processing System, those are the 2 systems we have control over. The other 4 systems are external systems which are exposed as a web service.
Situation
For the migration we are going to pretend that we are the development team responsible for building the Adventure Builder web application and Order Processing system, those 2 systems are own in house build applications. For this migration we have a few things that we have to bare in mind:
- lightweight architecture preferably no EJB's
- use of standard frameworks (deprecate/remove WAF)
- runtime restricted to JDK 1.4, tests can be written with JDK 1.5
Versions
The actual project version is 1.0.5. For this endavour the version is increased to 1.0.6. In different steps we will try to reach our final 1.0.6 version.
| Version | Description | Changes |
| 1 | # Same as the 1.0.5 build but mavenized # Added tests so whe can test and verify the behavior in the next steps. | Changelog |
| 2 | # Introduce the spring framework # Simplify code by using JdbcTemplate/JmsTemplate # Add best practices to Session Beans and simplify code | Changelog |
| 3 | # Instead of relying on JNDI and do lookups do dependency injection | Changelog |
| 4 | TBD | TBD |