Spring framework (can be categorized as a Dependency Injection or an Inversion Of Control framework) is a layered architecture that links objects together instead of the objects linking themselves together, and provides a consistent framework for the J2EE application development.
Oracle Enterprise Pack for Eclipse (OEPE) supports Spring IDE 2.0 and Spring Framework 2.5. OEPE allows to automatically generate Spring configuration and beans from persistence mappings.
In this tutorial part, you will use the Spring framework for developing service beans / business delegates. The business delegates are getting injected with the JPA DAOs by Spring resource injection mechanism. You will be provided a set of JUnit test cases for testing the Spring service beans / business delegates.
In this step, you will configure the
TroubleTicketSystemServer project for Spring and create the necessary packages.
Note: Spring support can be added while creating a New project or to an existing project.
Before you start the tutorial steps, download the resources.zip and unzip it. The extracted resources folder has delegates and util folders, which contain the Java business delegate interfaces/implementation classes and utility classes respectively.
You will perform following tasks in this step:
web.xmlfile will be updated to include the context listener for loading the Spring context:
Click the arrow below to navigate through the tutorial: