In this chapter, we'll look at implementing business logic in J2EE apps. However, first we'll consider infrastructure that enables us to limit app code to implementing business logic. This is a key goal of the J2EE specifications, but unfortunately the complexity of the J2EE APIs means that it isn't delivered out of the box. In this chapter, we'll look at how additional infrastructure can be used to solve common problems and simplify the use of J2EE. We'll consider:
The goals that a strong app infrastructure should deliver, and why it's important that apps should use one.
Packages that enable a consistent approach to app configuration via JavaBeans and facilitate interface-based design, as discussed in .
Finally, we'll look at implementation of some of the key functionality of the sample app using the generic infrastructure described in this chapter, illustrating how it simplifies app code, benefiting both productivity and maintainability.