Spring addresses most aspects of Java/Java EE application development and offers simple solutions to them. By using Spring, you will be lead to use industry best practices to design and implement your applications. The releases of Spring 2.x have added many improvements and new features to the 1.x versions. Spring Recipes: A Problem–Solution Approach focuses on the latest Spring 2.5 features for building enterprise Java applications.
Spring Recipes covers Spring 2.5 from basic to advanced, including Spring IoC container, Spring AOP and AspectJ, Spring data access support, Spring transaction management, Spring Web and Portlet MVC, Spring testing support, Spring support for remoting, EJB, JMS, JMX, E–mail, scheduling, and scripting languages. This book also introduces several common Spring Portfolio projects that will bring significant value to your application development, including Spring Security, Spring Web Flow, and Spring Web Services.
The topics in this book are introduced by complete and real–world code examples that you can follow step by step. Instead of abstract descriptions on complex concepts, you will find live examples in this book. When you start a new project, you can consider copying the code and configuration files from this book, and then modifying them for your needs. This can save you a great deal of work over creating a project from scratch.
What you’ll learn
Installing the Spring framework and Spring IDE, using the Spring IoC container and the Spring application context.
Understanding AOP concepts, using classic and new Spring AOP, integrating Spring with AspectJ, and load–time weaving aspects.
Using Spring to simplify data access (with JDBC, Hibernate, and JPA) and manage transactions programmatically and declaratively.
Building web applications and portlets with Spring Web MVC and Portlet MVC, and integrating Spring with Struts, JSF, and DWR.
Understanding the unit testing and integration testing concepts, and Spring’s unit and integration testing support (on JUnit 3.8, JUnit 4, and TestNG).
Using Spring’s support for remoting technologies (RMI, Hessian, Burlap, and HTTP Invoker), EJB, JMS, JMX, E-mail, scheduling, and scripting languages.
Understanding security concepts (authentication, authorization, and access control), and securing web applications using Spring Security.
Managing complex web application page flows using Spring Web Flow, and integrating Spring Web Flow with JSF.
Exposing contract–last web services using XFire, and developing contract–first web services using Spring Web Services.
Who is this book for?
This book is for Java developers who would like to gain hands–on experience rapidly on Java/Java EE development using the Spring framework. If you are already a developer using Spring in your projects, you can also use this book as a reference, and you’ll find the code examples very useful.
You don’t need much Java EE experience to read this book. However, it assumes that you know the basics of object–oriented programming with Java (e.g., creating a class/interface, implementing an interface, extending a base class, running a main class, setting up your classpath, and so on). It also assumes you have basic knowledge on web and database concepts and know how to create dynamic web pages and query databases with SQL statements.
Customer Reviews
Average Rating:
Rating: - A JSF web developer's perspective
I used this book as a quick reference to Spring 2.5 for use on a recent JSF project, and was thrilled at how easy it was to find exactly the information that I was looking for.
With JSF and the application context being my focus, I only read about a third of the book (chapters 1 through 4, 10 and 11).
These chapters detailed exactly what I needed to do to get Spring 2.x up and running with JSF, including how to use it instead of the JSF managed bean creation facility, ... Read More
Rating: - Best spring book
well-written-concise book that covers all spring (even lookup, though other reviewer didn't notice).
Its examples are not stupid, they feel real though simple ones.
I like this book much more than the manning one.
Rating: - Decent Book
This is one of the better Spring 2.0 book in the market. I have been using Spring for few years now but this book still managed to surprise me with few recipes. The only caveat I have is that, that lookup-method technique is not covered (unless I missed it, in which case I apologize). All in all a very decent book.
Rating: - complete and concise
Congratulations to Gary. He has done what lots of authors tried and failed. This is at the moment the best spring 2.x book available. Well-structured, concise and complete. It builds up excellently and takes you from start to finish. What I enjoy the most about this book is that it shows the necessary steps for integrating spring with other high profile open source frameworks and concepts. It is not dry as a reference manual while doesn't try to be funny which is the trick used by some authors as ... Read More