Spring: A developer's Notebook


Since development first began on Spring in 2003, there's been a constant buzz about it in Java development publications and corporate IT departments. The reason is clear: Spring is a lightweight Java framework in a world of complex heavyweight architectures that take forever to implement. Spring is like a breath of fresh air to overworked developers.

In Spring, you can make an object secure, remote, or transactional, with a couple of lines of configuration instead of embedded ...

See more details below
Paperback (1st Edition)
BN.com price
(Save 21%)$29.95 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (35) from $1.99   
  • New (8) from $8.50   
  • Used (27) from $1.99   
Spring: A Developer's Notebook

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
BN.com price
(Save 43%)$23.99 List Price


Since development first began on Spring in 2003, there's been a constant buzz about it in Java development publications and corporate IT departments. The reason is clear: Spring is a lightweight Java framework in a world of complex heavyweight architectures that take forever to implement. Spring is like a breath of fresh air to overworked developers.

In Spring, you can make an object secure, remote, or transactional, with a couple of lines of configuration instead of embedded code. The resulting application is simple and clean. In Spring, you can work less and go home early, because you can strip away a whole lot of the redundant code that you tend to see in most J2EE applications. You won't be nearly as burdened with meaningless detail. In Spring, you can change your mind without the consequences bleeding through your entire application. You'll adapt much more quickly than you ever could before.

Spring: A Developer's Notebook offers a quick dive into the new Spring framework, designed to let you get hands-on as quickly as you like. If you don't want to bother with a lot of theory, this book is definitely for you. You'll work through one example after another. Along the way, you'll discover the energy and promise of the Spring framework.

This practical guide features ten code-intensive labs that'll rapidly get you up to speed. You'll learn how to do the following, and more:

  • install the Spring Framework
  • set up the development environment
  • use Spring with other open source Java tools such as Tomcat, Struts, and Hibernate
  • master AOP and transactions
  • utilize ORM solutions

As with all titles in the Developer's Notebook series, this no-nonsense book skips all the boring prose and cuts right to the chase. It's an approach that forces you to get your hands dirty by working through one instructional example after another-examples that speak to you instead of at you.
Read More Show Less

Product Details

  • ISBN-13: 9780596009106
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 4/1/2005
  • Series: Developer's Notebook Series
  • Edition description: 1st Edition
  • Pages: 216
  • Sales rank: 1,427,143
  • Product dimensions: 7.04 (w) x 9.42 (h) x 0.52 (d)

Meet the Author

Bruce A. Tate is a kayaker, mountain biker, and father of two. In his spare time, he is an independent consultant in Austin, Texas. In 2001, he founded J2Life, LLC, a consulting firm that specializes in Java persistence frameworks and lightweight development methods. His customers have included FedEx, Great West Life, TheServerSide, and BEA. He speaks at conferences and Java user's groups around the nation. Before striking out on his own, Bruce spent 13 years at IBM working on database technologies, object-oriented infrastructure, and Java. He was recruited away from IBM to help start the client services practice in an Austin startup called Pervado Systems. He later served a brief stint as CTO of IronGrid, which built nimble Java performance tools. Bruce is the author of four books, including the bestselling Bitter Java, and the recently released Better, Faster, Lighter Java, from O'Reilly. First rule of kayak: When in doubt, paddle like Hell.

Working as a professional programmer, instructor, speaker and pundit since 1992, Justin Gehtland has developed real-world applications using VB, COM, .NET, Java, Perl and a slew of obscure technologies since relegated to the trash heap of technical history. His focus has historically been on "connected" applications, which of course has led him down the COM+, ASP/ASP.NET and JSP roads.

Justin is the co-author of Effective Visual Basic (Addison Wesley, 2001) and Windows Forms Programming in Visual Basic .NET (Addison Wesley, 2003). He is currently the regular Agility columnist on The Server Side .NET, and works as a consultant through his company Relevance, LLC in addition to teaching for DevelopMentor.

Read More Show Less

Table of Contents

How to Use This Book;
Conventions Used in This Book;
Using Code Examples;
Comments and Questions;
Safari Enabled;
Collective Acknowledgments;
Acknowledgments from Bruce;
Acknowledgments from Justin;
Chapter 1: Getting Started;
1.1 Building Two Classes with a Dependency;
1.2 Using Dependency Injection;
1.3 Automating the Example;
1.4 Injecting Dependencies with Spring;
1.5 Writing a Test;
Chapter 2: Building a User Interface;
2.1 Setting Up Tomcat;
2.2 Building a View with Web MVC;
2.3 Enhancing the Web Application;
2.4 Running a Test;
Chapter 3: Integrating Other Clients;
3.1 Building a Struts User Interface;
3.2 Using JSF with Spring;
3.3 Integrating JSF with Spring;
Chapter 4: Using JDBC;
4.1 Setting Up the Database and Schema;
4.2 Using Spring JDBC Templates;
4.3 Refactoring Out Common Code;
4.4 Using Access Objects;
4.5 Running a Test with EasyMock;
Chapter 5: OR Persistence;
5.1 Integrating iBATIS;
5.2 Using Spring with JDO;
5.3 Using Hibernate with Spring;
5.4 Running a Test Case;
Chapter 6: Services and AOP;
6.1 Building a Service;
6.2 Configuring a Service;
6.3 Using an Autoproxy;
6.4 Advising Exceptions;
6.5 Testing a Service with Mocks;
6.6 Testing a Service with Side Effects;
Chapter 7: Transactions and Security;
7.1 Programmatic Transactions;
7.2 Configuring Simple Transactions;
7.3 Transactions on Multiple Databases;
7.4 Securing Application Servlets;
7.5 Securing Application Methods;
7.6 Building a Test-Friendly Interceptor;
Chapter 8: Messaging and Remoting;
8.1 Sending Email Messages;
8.2 Remoting;
8.3 Working with JMS;
8.4 Testing JMS Applications;
Chapter 9: Building Rich Clients;
9.1 Getting Started;
9.2 Building the Application Shell;
9.3 Building the Bike Navigator View;
9.4 Building the Bike Editor Forms;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted January 10, 2006

    Very poorly written

    This is an obvious example of 'rush to print'. The author gives more information about kayaking than he does on Spring. The examples cannot be built from the information in the book. The build script in the book is incomplete and the code examples are more often then not left in a state which will not even compile. By chapter three you will either start searching the web for tutorials or be on the way to the store to by another book. Avoid this at all costs.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted October 18, 2005

    A book to avoid

    The authors use Mac and the structure of the samples, the dependencies are not structured very well and required you do a lot of work just to compile the examples. You will have to modify the build.xml files. The project files for InteiJ IDEA are included, however, the project type is wrong, they are defines as plan Java project not WEB project There are many typo in the book, see web page for errata. One other thing about the developer's notebook, the samples that you download from the web site are listed Spring-Chap2-lab1, Spring-Chap2-lab2, however, there is no way to relate the labs to what you read in the book. In addition there are spurious files in many of the projects. This book should be avoided.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)