Buy New

or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Buy Used
Used - Good See details
$26.77 & this item ships for FREE with Super Saver Shipping. Details

or
Sign in to turn on 1-Click ordering.
 
   
Sell Back Your Copy
For a $20.78 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Spring Recipes: A Problem-Solution Approach
 
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Spring Recipes: A Problem-Solution Approach [Paperback]

Gary Mak (Author), Daniel Rubio (Author), Josh Long (Author)
4.1 out of 5 stars  See all reviews (19 customer reviews)

List Price: $49.99
Price: $31.49 & this item ships for FREE with Super Saver Shipping. Details
You Save: $18.50 (37%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it delivered Wednesday, February 1? Choose One-Day Shipping at checkout. Details
Sell Back Your Copy for $20.78
Whether you buy it used on Amazon for $26.63 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $20.78.
Used Price$26.63
Trade-in Price$20.78
Price after
Trade-in
$5.85

Book Description

Recipes September 1, 2010

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

  1. Introduction to Spring
  2. Advanced Spring IoC Container
  3. Spring AOP and AspectJ Support
  4. Scripting in Spring
  5. Spring Security
  6. Integrating Spring with Other Web Frameworks
  7. Spring Web Flow
  8. Spring @MVC
  9. Spring RESTSpring and Flex
  10. Grails
  11. Spring Roo
  12. Spring Testing
  13. Spring Portlet MVC Framework
  14. Data Access
  15. Transaction Management in Spring
  16. EJB, Spring Remoting, and Web Services
  17. Spring in the Enterprise
  18. Messaging
  19. Spring Integration
  20. Spring Batch
  21. Spring on the Grid
  22. jBPM and Spring
  23. OSGi and Spring

Frequently Bought Together

Spring Recipes: A Problem-Solution Approach + Spring in Action + Maven: The Definitive Guide
Price For All Three: $80.27

Some of these items ship sooner than the others. Show details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Spring in Action $27.49

    Usually ships within 1 to 3 weeks.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Maven: The Definitive Guide $21.29

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought


Editorial Reviews

About the Author

Gary Mak, founder and chief consultant of Meta-Archit Software Technology Limited, has been a technical architect and application developer on the enterprise Java platform for more than seven years. He is the author of the Apress books Spring Recipes: A Problem-Solution Approach and Pro SpringSource dm Server. In his career, Gary has developed a number of Java-based software projects, most of which are application frameworks, system infrastructures, and software tools. He enjoys designing and implementing the complex parts of software projects. Gary has a master's degree in computer science. His research interests include object-oriented technology, aspect-oriented technology, design patterns, software reuse, and domain-driven development.

Gary specializes in building enterprise applications on technologies including Spring, Hibernate, JPA, JSF, Portlet, AJAX, and OSGi. He has been using the Spring Framework in his projects since Spring version 1.0. Gary has been an instructor of courses on enterprise Java, Spring, Hibernate, Web Services, and agile development. He has written a series of Spring and Hibernate tutorials as course materials, parts of which are open to the public, and they're gaining popularity in the Java community. In his spare time, he enjoys playing tennis and watching tennis competitions.



Daniel Rubio is an independent consultant with over 10 years of experience in enterprise and web-based software. More recently, Daniel is founder and technical lead at MashupSoft.com.

Josh Long is the Spring developer advocate for SpringSource, an editor for InfoQ.com, and author/co-author of many works (including Spring Recipes: A Problem-Solution Approach, Second Edition, published by Apress). Josh has spoken at numerous industry conferences, including Geecon, TheServerSide Java Symposium, SpringOne, OSCON, JavaZone, Devoxx, JAX, and Java2Days. When he’s not hacking on Spring Integration and other open-source code (see http://Git.SpringSource.org, http://GitHub.com/SpringSource, and http://GitHub.com/JoshLong), he can be found at the local Java user group, a coffee shop, or the airport. Josh likes solutions that push the boundaries of the technologies that enable them. His interests include scalability, big data, business process management, grid processing, rich Internet applications, mobile computing, and so-called "smart systems". He blogs at http://blog.springsource.org and JoshLong.com, and can be reached at josh@joshlong.com.

Product Details

  • Paperback: 1104 pages
  • Publisher: Apress; 2nd edition (September 1, 2010)
  • Language: English
  • ISBN-10: 1430224991
  • ISBN-13: 978-1430224990
  • Product Dimensions: 9.3 x 7.5 x 2.4 inches
  • Shipping Weight: 3.4 pounds (View shipping rates and policies)
  • Average Customer Review: 4.1 out of 5 stars  See all reviews (19 customer reviews)
  • Amazon Best Sellers Rank: #90,079 in Books (See Top 100 in Books)

More About the Author

Josh Long is the Spring developer advocate for SpringSource, a division of VMware. Josh is the lead author on Apress' Spring Recipes, 2nd Edition, and a SpringSource committer and contributor. When he's not hacking on code for SpringSource or other open-source projects, he can be found at the local Java User Group or at the local coffee shop. Josh likes solutions that push the boundaries of the technologies that enable them. His interests include scalability, integration, rich clients, BPM, grid processing, mobile computing and so-called "smart" systems. He blogs at blog.springsource.org or joshlong.com.

 

Customer Reviews

19 Reviews
5 star:
 (12)
4 star:
 (3)
3 star:    (0)
2 star:
 (1)
1 star:
 (3)
 
 
 
 
 
Average Customer Review
4.1 out of 5 stars (19 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

13 of 13 people found the following review helpful:
5.0 out of 5 stars Encyclopedia Spring, November 4, 2010
By 
W. Lehman "Lionel Hutz" (San Diego, CA United States) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: Spring Recipes: A Problem-Solution Approach (Paperback)
One Minute Bottom Line

As the first of its kind, this book attempts to introduce just about every facet of Spring. From the core bean dependency injection to UI development with Spring MVC to database simplification with JDBC to batch processing with Spring Batch to system integration with Spring Integration to the simplification of REST via Spring MVC as well as RestTemplate. This is a book for beginners and advanced Spring developers wishing to advance and discover more about Spring and the universe that SpringSource has created.

Review

Spring Recipes is a powerful book initially written by Gary Mak who did a great job on authoring the first edition. Each chapter was logically followed by the next related chapter in a flawless manner. Very little content was rushed.

In the second edition, perhaps as suggested by the editor (Apress), the book was written as a fusion of first edition with the addition of chapters from another book, Spring Enterprise Recipes: A Problem-Solution Approach as well as the addition of new technologies such as Spring Roo. As a consequence the book put on a lot of weight. From a middle weight book it became a heavy weight book. There are over one thousand pages. A the same time this growth in the number of pages illustrates how Spring has matured beyond the core J2EE and has moved into more complex sectors such as Spring Integration, Spring Batch, Spring Roo and so on. It also shows how a framework like Spring which at first was intended to simplify J2EE has in fact revolutionized Java itself. From core Java to Enterprise Java this book exemplifies how Spring is an essential part of just about every facet of Java based systems.

Josh Long, who led the effort in the second edition, has gone far and beyond to make this book more useful in the Spring 3 context. He reviewed most sections from the previous editions and although some unedited sections remain, the concept of Spring 3 is ever present. But with such mammoth effort and the tight deadline this book faced, there are some rather small lapses. From time to time in this review I will attempt to highlight those. For example, small tidbits such as the ApplicationContextAware example were left in the pre-Generics state as written in the previous edition; again, the flow of the book is actually refreshed to exemplify Spring 3 and those small omissions should not dissuade the reader from learning Spring 3.

The second edition loses the introduction to Inversion of Control (IoC) in favor of more hands on examples. Logically this was done in to save the book from competing for size with the Oxford Dictionary. Another major change in this edition is the book sectioning. The previous edition was separated in distinct sections such as core, advanced, etc; those were conducive of Spring 2.x. With the introduction of new concepts such as Spring Batch and Spring Integration, the data access related topics were moved out of the core section and into a chapter nearer to advanced data-centric topics.

As this is a massive book, inevitably some topics received more attention than others. This is caused by the fact that the book attempts be the Spring Encyclopedia. Such feat has not been attempted before in a Spring related book. The pluses of this approach are that the reader if made aware of all that is Spring and the massive effort that went into what is now the Spring Framework. Most readers benefit from this format as the book attempts to cover each topic in one form or another. Having a short introduction on topics such as Spring Roo would lead more developers to explore this Spring project and I think that Spring Roo is one of the most important projects ever introduced in any Java framework. It is so because it simply allows the developer to explore the features and principles of Spring Framework hands one and in a relatively short time; and yes, there are principles in Spring; the most important is the "don't repeat yourself" (DRY principle) and Spring Roo exemplifies that principle.

The book uses Maven and all the examples are maven driven, but unlike the previous edition the examples are not arranged by chapters. This is a slight disadvantage since it makes it harder to find the examples unless they are open via an IDE or simply searched through some find feature. Having the examples arranged by chapters was a major plus but the authors have decided otherwise; perhaps this was done in order to save time. There are plenty of examples and the ones I've compiled and used worked as designed which shows that the quality of the code was properly reviewed.

Core Spring receives a good coverage; from the beginning the author starts with the Maven suggestions and how the latest Spring jars can be obtained. It would have helped to suggest the Spring STS edition of Eclipse which is a perfect and free IDE which includes the m2eclipse plug-in for Maven project integration simplification. The Spring concept is introduced with the now classic Spring applicationContext.xml concept. It highlights faster ways to configure beans via XML; from bean initialization shortcuts to configuring collections such as lists, sets, arrays, maps, and properties. Auto wiring is introduced just before annotations are gently introduced as a means to simplify bean configuration. The advanced section introduces factory method invocations as well as other advanced ways to configure Spring beans. Spring Expression Language (SpEL) is also introduced with meaningful examples. This is followed by bean scopes and bean lifecycle aware beans. As Spring 3 introduced Java Config based bean configuration. One note on this; Java Configuration does not offer all the functionality found in the Spring XML or Spring bean annotations; so do not blame the book for lacking some bean creation examples shown in the `core Spring bean configuration' sections. (tip: wait for Spring 3.1; that will enhance support for Java Configuration).

Spring AOP is now focused on the AspectJ style and the XML style; the `Dynamic Proxy and Classic Spring AOP' chapter has been removed since the first edition of this book should be used if such approach is sought. AOP is a fairly straight forward concept and the book does a good service on introducing the annotation-based and XML-based AOP.

Spring Security focuses on the most popular security approaches; from URL security, to HTTP basic as well as form based security. Authenticating users as well as encrypting data is also exemplified. LDAP Server authentication is a very complete example which shows how to install, configure and integrate with in other to authenticate against LDAP. This is a very complete chapter which shows how to use Spring Security and how to integrate with UI components to exemplify a real time example.

The chapter on with other frameworks is short but complete; integrations such as JSF, Servlets, Filters, Struts 1.x and DWR are exemplified

Spring Web Flow and Spring MVC take center stage. The Spring MVC section introduces REST integration which is a great addition to the already superior web UI framework. By the end of those two chapters the reader should be able to showcase Spring Web Flow as well as Spring MVC with the cool addition of RESTful services.

I've skipped the Flex chapter. So I cannot detail this section.

The chapter on Grails is a great one because it introduces the reader to project simplification through this great dynamic language based on Groovy. Great detail is paid to this chapter and by the end of it the reader should begin to test and harness Spring in a much faster manner. As a personal tip, download the latest edition of Spring STS to simplify the adoption of this great concept known as Grails.

Topics such as Spring Roo and Spring REST receive a thin but good introduction' but then again; they do not deserve more since they are meant to simplify concepts such as project creation and REST client implementations. Do not expect to fully understand these topics by the end of their respective chapters. For example, Spring Roo is kept to a demo form which leads you start Spring Roo and go through a very short sequential introduction to the point where you are left at a starting point, which means, you must perhaps find another book or refer to the Spring Roo online reference to advance further. The online documentation offered by Spring as well as Spring STS are also great resources for exploring this new and cool project.

Spring Batch is introduced as a mere simple concept and no in-depth recipes are shown. The online documentation is a far better venue for this topic. It would have been nice to fuse with the Quartz Scheduler section to exemplify integrated Spring Batch with the Quartz Scheduler.

Quartz scheduling is anemic and virtually unchanged from the previous edition. The Quartz Scheduling framework is very complex and the Spring simplifications are not properly introduced using logical examples. This is perhaps one of the first and most obvious weaknesses in the book which was perhaps acceptable in the first edition but it's detrimental in the second edition. I personally consider Quartz a major scheduling framework and now that Terracotta owns it will receive more enhancements such as grid functionality.

The OSGI section is short. Spring DM is short and outdated. If focuses on Spring DM 1.2.x and the examples are anemic. They merely demonstrate how to power on Spring DM but do not delve deeply into the Spring DM dynamics and completely ignore Spring DM events. Spring DM is a favorite project of mine and I feel it should have received more attention.

For those still in love with EJB, there is a section for you. I will not discuss much about this chapter because... Read more ›
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 9 people found the following review helpful:
5.0 out of 5 stars Spring Recipes - The new de-facto guide for developing with Spring technologies!, September 12, 2010
This review is from: Spring Recipes: A Problem-Solution Approach (Paperback)
This book is without a doubt the most comprehensive compendium of Spring portfolio technologies on the market. I found reading this book not only enlightening, but entertaining! In this book as with most recipe books, the code does much of the story telling. That is you are never stranded between sections of descriptive text without some code to follow and re-enforce what was written. I liked how many of the descriptions are boiled down to make sense in every day enterprise computing terms. Additionally, they give _useful_ use cases that provide the reader insights as to how one would expect to implement a Spring technology or functionality as part of an architectural strategy, or simplification of an existing framework.
For the Web application developers, you will find of interest:
* Spring Rest (e.g. RSS,ATOM,JSON,XML)
* Flex integration including Web Service consumption, AMF - Spring BlazeDS on the client and server, etc..
* Grails, GORM. Adds Object Relational Mapping capabilities to your data domain.
* ROO. If you've never used ROO, then give yourself 30 minutes with this chapter!
*** Plus plenty more. ( This is a 1000 page book, it contains everything one would want to know )

Extremely well detailed textual overviews of the EE components make this a must have for any Architect or System Engineer's bookshelf. The chapters were put together methodically, and for having insight into the apparent and upcoming shifts in enterprise computing . E.G. from Client-Server architecture to Cloud computing. You will find importantly:
* Remoting - almost every way to expose data to your service consumers.
* Messaging - further insulate your application from interacting directly with the messaging framework by using MDP's (Message Driven POJO's)
* Integration - THE definitive chapter in any book on this ESB stack.
* Batch - the universally accepted protocol for getting data into your system.
* Grid computing - Terracotta for distributing JVM capabilities
*** and more!

The hundreds of examples presented by the authors make this book a very compelling read, and there are sections where you literally think 'Why am I not using this, already ?'. All of the examples and text really give way to a level of understanding that the online manuals and various well written tutorials online could only wish to meet. Definately worthy of having on your bookshelf; Just make an extra few inches of space, and you're ready!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 4 people found the following review helpful:
5.0 out of 5 stars The most complete Spring book in the market, September 11, 2010
This review is from: Spring Recipes: A Problem-Solution Approach (Paperback)
Finally a complete single Spring Recipes book, that also covers integration, osgi, batch, roo, @MVC,
jbpm4, REST, grails,Spring Portlet MVC Framework, Spring of the Grid, etc, and that to from Gary Mak.
It is a must have for all developers using Spring. For the price and the topics it covers, it is a definitely a
very good buy.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Inside This Book (learn more)
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Surprise Me!
Search Inside This Book:

What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(3)
(2)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
Kindle Version? 2 Aug 6, 2011
200 pages shorter? 2 Sep 12, 2010
delivery 1 Sep 2, 2010
See all 3 discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
   
Related forums



So You'd Like to...



Look for Similar Items by Category


Look for Similar Items by Subject