Spring Recipes: A Problem-Solution Approach (Books for Professionals by Professionals)

Spring Recipes: A Problem-Solution Approach (Books for Professionals by Professionals)
Price: $49.99 USD

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.

Author: Gary Mak
Publisher: Apress
Customer Reviews
  • Excellent!! I wish all books are this good!
    As a complete newbie to Spring, I picked up this book and I am very pleased with it. The author's writing style is very gentle, introducing one concept at a time and multiple approaches to achieve the same goal. I have the read this book from cover to cover and I tested most of the examples (well, all except Spring MVC related ones) and they work great. The explanations provided are very clear. I am fully convinced in the power of the Spring framework and I plan to use it in my current and future projects. This book says on the back cover that "it helps you to master 80% of Spring's feature with just 20% of the effort" and without a doubt, it is highly successful. Among the topics discussed are Spring's support for JDBC, AspectJ, Transactions, ORM, MVC, Struts, Testing, Security, Web Services, JMS, EMail, EJB, JMX and Scripting - all of which are very helpful for day to day development work. I will never hesitate to buy another book from this author again. Two Thumbs up!!!
  • Extremely Helpful Intro to Spring Framework
    Although I had some experience in web programming, I am a beginner to the Spring framework. Here is my take on the book, <br /> <br />Pros <br />1. All necessary Spring concepts are described *very* clearly. There are no confusions, no errors. The level of clarity in *presentation* and *organization* of this book is rarely found in tech books. <br />2. This book will teach you *everything* you need to know to start building a complete database driven, secure Spring applications. <br />3. You can buy a pdf version of the book which is very helpful when you need to quickly search for a reference to some topic. <br />4. The companion website contains all source codes for the sample programs provided in the book. <br /> <br /> <br />Cons - I cannot think of any. <br /> <br />I wish more tech books were written this way.
  • It's a good book
    I have learned many of the characteristics and tips about spring, i'm happy about it.
  • Simple THE BEST
    Rarely I write review, however, in this case I will make an exception. <br /> <br />By far this is the best book about Spring you will every read. <br /> <br />VERY easy to read. It is well structured as questions and answers, I am really amazed how detailed it is. <br /> <br />Of course the author(s) did not cover 100% of the Sprint Framework, but by far they have covered it better than anybody else. <br /> <br />For example, AOP, JDBC Templates, Hibernate Templates, JMS Templates, Quartz, Spring WebFlow, Testing, configuring web applications with JPA and Hibernate, Transactions, ...etc have been covered way beyond the basics. So this book along with its code which you can download should get you up and running very quickly. <br /> <br />One thing I wish if it was covered: RUN AS Manager in Spring's Security, and by far that presentation about Security is much more complete than any I have read before. <br /> <br /> <br />I give it 5 starts, good job. In the future, I wish the next version will elaborate furthur on Spring Security, and more complex examples on one to many relationships with JBA and Hibernate. <br /> <br />Abu al-Sous <br /> <br />Chicago, IL
  • 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. <br /> <br />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). <br /> <br />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, and how to unlock the request/session scopes. <br /> <br />The chapter on the advanced features of the Spring container is particularly interesting as it clearly portrays the number of ways Spring can instantiate a bean (viz., using a constructor, a static factory method, an instance factory method, from a static field, from an object property, or a factory bean.) Also noteworthy are the Java equivalents that are provided for each of these instantiation methods, making understanding the differences a no-brainer. <br /> <br />There's also a wealth of information on multiple approaches to achieving the same goal (e.g., injecting references using the ref element, using ref attribute of a property element, or using the p schema), with clear indications as to why one might be preferable over the others. <br /> <br />Really stretching for a con here - the recipe approach felt a bit contrived and unnecessary. However, the quality of the writing is beyond reproach, and more than made up for any discomfort I had with the topic structure.
Results provided by Amazon