This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

The Open Source Zone


Apache Jakarta Commons: Reusable Java(TM) Components (Bruce Perens' Open Source Series)

Book cover

by Will Iverson

ASIN: 0131478303

See more on Amazon.com

Average Customer Review: 3.0, based on 4 reviews.

Customer reviews (4 of 4)

skip this one it only scratches the surface., 2006-09-16, Rating: 2.

I recently started working on serveral projects that require using the Apache Commons packages. After looking at several of the Apache Commons books available I chose this one. This is a choice I regret.

I've had this book at my work desk now for a several months, and several times needed to learn look something up about Apache Commons. One example we doing an multipart HTTP POST to send large files. In every case, this book was useless. Sometime it didn't even have the needed classes in the Appendix. The knowledge in the book is only the most introductory stuff that you could get off a web pages in an hour or two. Except for the most basic questions, or for the complete novice this book is useless. I'd throw this book away if I hadn't spent so much money on it.

I gave it to stars, just because someone (very novice) might find it useful. It does have complete examples, but I don't think intermediate or advanced java programmers would find them useful.

Missing two of the most important projects, 2006-01-20, Rating: 1.

Two of the most important projects are not introduced in this book except in the "Other Project" chapter where the information you can get from Jakarta Commons website is better and clearer.

The two projects are:
Validator - a must for almost every Java developer. Who doesn't do validations? This project provides useful validations such as email address and credit card numbers. More importantly, it allows us to define validation rules in XML format.

Digester - also a must for anyone who needs to parse XML configuration files or rule files. Very handy. No need to use SAX directly anymore.

I also found that other projects that enjoy a chapter in the book are not explained better than from Jakarta Commons Website. For example, the Lang project. I learned more from the Jakarta Commons website in an hour than from the book.

To summarise, this book is really disappointing and not worth the money.

description with api, 2005-04-10, Rating: 4.

"Apache Jakarta Commons" shows the reader the power of the Commons libraries. It provides a very brief overview of the available components and goes into detail on 12 of them. APIs are explained through both class diagrams and description. The author provides best practices, warnings and project ideas. The book gets started right away, on page three.

The code examples are clear and well commented. The consistent coding standard throughout the book helps with readability. The author highlights differences between the sample code and "real apps."

The book is meant for experienced Java programmers. The author assumes readers have knowledge of JSPs, Servlets, Swing and UML. Most importantly, he assumes readers are comfortable with learning by reading through code. Readers are not assumed to have knowledge of the specialized topics such as XPath or encryption.

Note that this 325-page book is really a 201-page book. Appendix A is the entire API of the Commons lang project - word for word. I found the printed API to be difficult to read since the methods tend to run into each other. Since the other Commons projects have APIs online only, readers have to be comfortable using the online JavaDoc anyway.

This is the type of book that readers will find either valuable or minimally useful. For those who like bound versions, this book gets you started quickly. For those who like online documentation, the UML diagrams are the primary benefit given the online JavaDoc and code samples.

worth checking out the new classes, 2005-03-17, Rating: 4.

Amazing, the amount of high quality and free software you can get. The latest example is how the open source movement has put together a set of advanced Java classes, that go beyond what the default J2SE SDK gives you. Iverson breaks the Commons offerings into various groupings and explains simple usages of these.

Some classes are of quite general utility. As in the Collections, that expand on the Java 2 Collections Framework. The latter is often indispensible for a lot of programming needs. If that describes your situation, the Commons Collections may be worth looking at. The Logging classes should also prove generally useful.

Most Commons classes, however, may be more specialised. Those dealing with database connection pooling, for instance. Which is not to say that these and others like them are not useful. Far from it. Just that the needs are specialised. Still, it is probably also worth your while to scan these Commons classes, on the chance that serendipity strikes.

Overall, the Commons project is encouraging. More buildout is needed, though.