Contents
1: Spring at Glance
b'Chapter 1: Spring at Glance'
b'Introduction to Spring framework'
b'Problems addressed by Spring'
b'Spring Architecture'
b'What more Spring supports underneath?'
b'Spring road map'
b'Container-The heart of Spring'
b'How beans are available from container?'
b'Summary'
2: Dependency Injection
b'Chapter 2: Dependency Injection'
b'The life of a bean'
b'Using JSR-250 annotations for bean lifecycle'
b'Instance creation'
b'Dependency Injection'
b'Summary'
3: Accelerate with Spring DAO
b'Chapter 3: Accelerate with Spring DAO'
b'How Spring handles database?'
b'Object Relation Mapping'
b'Summary'
4: Aspect Oriented Programming
b'Chapter 4: Aspect Oriented Programming'
b'Aspect Oriented Programming (AOP)'
b'Part I : Creating application for the core concern(JDBC)'
b'PartII: Integration of Log4J'
b'Part III: Writing Logging aspect.'
b'Annotation based aspect.'
b'Introduction'
5: Be Consistent: Transaction Management
b'Chapter 5: Be Consistent: Transaction Management'
b'Life cycle of transaction management'
b'Summary'
6: Explore Spring MVC
b'Chapter 6: Explore Spring MVC'
b''
b''
b'Summary'
7: Be assured take a test drive
b'Chapter 7: Be assured take a test drive'
b''Testing' an important step'
b'Testing Tools'
b'Pase I Unit testingDAO Unit testing by JUnit'
b'Mock Testing'
b'Pase II Integration testing'
b'Pase III System testing'
b'Summary'
8: Explore the Power of Restful Web Services
b'Chapter 8: Explore the Power of Restful Web Services'
b'Web services'
b'Summary'
9: Exchange the Message: The Messaging
b'Chapter 9: Exchange the Message: The Messaging'
b'Spring and Messaging'
b'Overview of WebSocket API'
b'SockJS'
b'STOMP'
b'Summary'
Chapter 1. Spring at Glance
Spring the fresh new start after the winter of traditional J2EE, is what Spring
framework is in actual. A complete solution to the most of the problems
occurred in handling the development of numerous complex modules
collaborating with each other in a Java enterprise application. Spring is not a
replacement to the traditional Java Development but it is a reliable solution to
the companies to withstand in today's competitive and faster growing market
without forcing the developers to be tightly coupled on Spring APIs.
In this topic, we will be going through the following points:
Introduction to Spring framework
Problems address by Spring in enterprise application development
Spring road map
What's new in Spring 5.0
Introduction to Spring framework
Rod Johnson is an Australian computer specialist and co-founder of
SpringSource. "Expert One on One J2EE Design and Development" was
published in November 2002 by him. This book contains about 30000 lines
of code, which contains the fundamental concepts like Inversion of Control
(IoC), Dependency Injection (DI) of the framework. This code is referred as
interface21. He wrote this code with just an intension to be used by
developers to simplify their work, or they can use this as basis of their own
development. He never thought of any framework development or anything
like that. There happened to be a long discussion at Wrox Forum about the
code, its improvement and lot many things. Juregen Holler and Yann
Caroffa,were the two readers of the forum who proposed the thought of
making the code a base of a new framework. This is the reasoning of Yann,
Spring the fresh new start after Winter of traditional J2EE who names the
framework as The Spring framework. The project went in public in June
2003 and powered towards 1.0. Then onwards lots of changes and up
gradations took place to withstand and support the technologies in market.
We aim in this book about the latest version 5.0. In couple of pages we will
cover what are the new features added in this version. In subsequent pages
we will cover how to use the latest features in your application and how as a
developer you can take advantages of.