With over 3 Million users/developers, Spring Framework is the leading "out of the box" Java framework. Spring addresses and offers simple solutions for most aspects of your Java/Java EE application development, and guides you to use industry best practices to design and implement your applications. The release of Spring Framework 3 has ushered in many improvements and new features. Spring Recipes: A Problem-Solution Approach, Second Edition continues upon the bestselling success of the previous edition but focuses on the latest Spring 3 features for building enterprise Java applications. This book provides elementary to advanced code recipes to account for the following, found in the new Spring 3: * Spring fundamentals: Spring IoC container, Spring AOP/ AspectJ, and more * Spring enterprise: Spring Java EE integration, Spring Integration, Spring Batch, jBPM with Spring, Spring Remoting, messaging, transactions, scaling using Terracotta and GridGrain, and more. * Spring web: Spring MVC, Spring Web Flow 2, Spring Roo, other dynamic scripting, integration with popular Grails Framework (and Groovy), REST/web services, and more. This book guides you step by step through topics using complete and real-world code examples. 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 * How to use the IoC container and the Spring application context to best effect. * Spring's AOP support, both classic and new Spring AOP, integrating Spring with AspectJ, and load-time weaving. * Simplifying data access with Spring (JDBC, Hibernate, and JPA) and managing transactions both programmatically and declaratively. * Spring's support for remoting technologies (RMI, Hessian, Burlap, and HTTP Invoker), EJB, JMS, JMX, email, batch, scheduling, and scripting languages. * Integrating legacy systems with Spring, building highly concurrent, grid-ready applications using Gridgain and Terracotta Web Apps, and even creating cloud systems. * Building modular services using OSGi with Spring DM and Spring Dynamic Modules and SpringSource dm Server. * Delivering web applications with Spring Web Flow, Spring MVC, Spring Portals, Struts, JSF, DWR, the Grails framework, and more. * Developing web services using Spring WS and REST; contract-last with XFire, and contract first through Spring Web Services. * Spring's unit and integration testing support (on JUnit 3.8, JUnit 4, and TestNG). * How to secure applications using Spring Security. Who this book is for This book is for Java developers who would like to rapidly gain hands-on experience with 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 - you'll find the code examples very useful. Table of Contents * Introduction to Spring * Advanced Spring IoC Container * Spring AOP and AspectJ Support * Scripting in Spring * Spring Security * Integrating Spring with Other Web Frameworks * Spring Web Flow * Spring @MVC * Spring RESTSpring and Flex * Grails * Spring Roo * Spring Testing * Spring Portlet MVC Framework * Data Access * Transaction Management in Spring * EJB, Spring Remoting, and Web Services * Spring in the Enterprise * Messaging * Spring Integration * Spring Batch * Spring on the Grid * jBPM and Spring * OSGi and Spring
| ISBN | 1430224991 | | Volumes | 1 | | ISBN13 | 9781430224990 (What's this?) | | Weight (grammes) | 1854 | | Publisher | APress | | Published in | Berkley | | Imprint | APress | | Previous ISBN | 9781590599792 | | Format | Paperback | | Height (mm) | 235 | | Publication date | 02 Sep 2010 | | Width (mm) | 191 | | DEWEY | 006.76 | | Spine width (mm) | 54 | | DEWEY edition | DC22 | | Academic level | General, Professional / Scholarly | | Pages | 1104 | |
|
|
|
| | | About the Authors | | |
| | | About the Technical Reviewers | | |
| | | Acknowledgments | | |
| | | Introduction | | |
| Chapter 1 | | Introduction to Spring | | 1 |
| 1-1 | | Instantiating the Spring loc Container | | 1 |
| | | Problem | | 1 |
| | | Solution | | 1 |
| | | How It Works | | 3 |
| 1-2 | | Configuring Beans in the Spring loC Container | | 4 |
| | | Problem | | 4 |
| | | Solution | | 4 |
| | | How It Works | | 5 |
| 1-3 | | Creating Beans by Invoking a Constructor | | 14 |
| | | Problem | | 14 |
| | | Solution | | 15 |
| | | How It Works | | 15 |
| 1-4 | | Resolving Constructor Ambiguity | | 18 |
| | | Problem | | 18 |
| | | Solution | | 18 |
| | | How It Works | | 18 |
| 1-5 | | Specifying Bean References | | 21 |
| | | Problem | | 21 |
| | | Solution | | 21 |
| | | How It Works | | 21 |
| 1-6 | | Specifying the Data Type for Collection Elements | | 25 |
| | | Problem | | 25 |
| | | Solution | | 25 |
| | | How it Works | | 25 |
| 1-7 | | Creating Beans Using Spring's Factory Bean | | 28 |
| | | Problem | | 28 |
| | | Solution | | 28 |
| | More... | | |