Chapter 4. Installing Spring

4.1. Prerequisites

Spring is certified for use with several Red Hat JBoss products. This chapter is intended to help you choose a certified distribution of the framework, and the most appropriate strategy of using it with your application and target platform.
System Requirements
The prerequisites for using Spring are as follows:
  • Maven 3.0.4
  • Red Hat JBoss Developer Studio 8
  • Red Hat JBoss Enterprise Application Platform 6

Note

Throughout this guide, $EAP_HOME represents the top-level directory of the extracted distribution, which is usually jboss-eap-6.
Downloading Spring
A certified version of Spring can be obtained by downloading it from a public repository (Maven or Ivy). The following versions of Spring are certified for use with Red Hat JBoss products:
  • 2.5.6.SEC03
  • 3.0.7.RELEASE
  • 3.1.4.RELEASE
  • 3.2.13.RELEASE
  • 4.0.9.RELEASE
  • 4.1.4.RELEASE
Instructions on downloading and setting up repositories for the community versions of Spring are available at Spring Reference documentation. Though the instructions in the Spring Reference documentation are written taking Spring 3 into consideration, they are also applicable to Spring 2.5.6.SEC03 and Spring 4.

Warning

  • Spring 2.5 is deprecated from the release of JBoss Web Framework Kit 2.4.0. This means that Spring 2.5 will continue to be tested and supported in JBoss Web Framework Kit 2.x but it will not be tested or supported in JBoss Web Framework Kit 3 and later. Note that subsequent Spring 2 releases will not be tested or supported in JBoss Web Framework Kit.
  • Spring 3.0.x and 3.1.x are deprecated from the release of JBoss Web Framework Kit 2.5.0. This means that Spring 3.0.x and 3.1.x will continue to be tested and supported in JBoss Web Framework Kit 2.x but they will not be tested or supported in JBoss Web Framework Kit 3 and later. Spring 3.2.x and later are not deprecated and continue to be tested and supported in JBoss Web Framework Kit.
  • Support for Spring 4 as a tested framework is limited to the features supported by Red Hat JBoss Enterprise Application Platform. Specifically, support is not provided for the new features in Spring 4 related to Java SE 8 and Java EE 7.
When using Spring in an application, the options for packaging and distributing the framework are:
  • Installing the framework libraries as shared libraries on the platform
  • Packaging the framework libraries together with the application (in application archives)