Most material can probably be found in Tomcat's website itself, but this book still has good value for money. You might also want to look at Wrox' "Professional Apache Tomcat", which is equally good. For advanced users, you might want to check "How TOmcat Works" (download sample chapters from the publisher's site first because as I said this is not for beginners) that covers beyond configuration and administration.
i get the sense the book may have been rushed. it's understandable, perhaps, given that as popular as tomcat is, there is dearth of printed documentation for it, and author/o'reilly felt the need to fill the gap asap.
revised edition with in-depth coverage of various parts of tomcat would be welcome (but the software changes quickly enough that printed publication like this may not be able to keep up and be profitable)
As concise and straightforward as the book is, it still takes on the more complex topics like Building Tomcat from Source, Tomcat Security, and Tomcat Clustering. But I imagine that, like me, you will end up permanently creasing the book binding on Chapter 7: Configuration Files and Their Elements. Especially if you actually end up setting up and running Tomcat.
In typical O'REILLY style the book is well organized and well written. It is not one of those technical books that require reading the same sentence three times just to understand its content. Instead the authors have an easy to read style that gracefully flows from topic to topic.
Thanks to the authors Jason Brittain and Ian F. Darwin and of course to O'REILLY for another worthy edition to my reference library.
This book is excellent as a reference for JSP developers as well (of course if you are doing JSP under Tomcat). It doesn't teach you how to do JSP. It does give you a good background for how your JSP pages are executed and how Tomcat reacts to requests.
Chapter-by-chapter the book presents new concepts accompanied by examples and descriptions for installing, configuring, and some debugging of the servlet engine. While the book tends to be Unix-centric, information for other Operating Environments is provided. Each successive chapter tends to expand on the previous chapter increasing the reader's knowledge along the way. It adequately serves as an introduction to Tomcat but it is also a good book to keep around as a technical administrative reference.
The book provides specific information on Tomcat interfaces and components through a "user guide" type format. For example, information is presented for Tomcat's setup, configuration files, environment variables, servlets and JSP's, JDBC, SSL and much more. What this book is not is a programmer guide but is a good how-to for programmers wanting to administer the server. Examples are provided for using and running Tomcat as a stand-alone web server.
In summary, this book is a success in explaining the relatively technical concepts of Tomcat and also provides very useful and relevant information about Tomcat features.
I cannot speak for the development side of this book, though I think this book gave a nice introduction to JSPs and servlets for someone who is not a Java programmer. I can speak for the administrative side of it, and it is very good.
The authors are very thorough in showing you how to setup a Tomcat server, and provide a couple different setups to use, and how to approach each. In addition, they cover security, dealing with users, and configuring the server.
For setting up and running a Tomcat server, this book is certainly a good buy. If you are a web server admin, take the time to read this book. :)
This is where Tomcat: The Definitive Guide comes in. This really well written book makes it easy to follow for the developer as well as non-developer admin. The book starts with an introduction of Tomcat (v4.0) where you learn how to stop/start the server, learn about the directory structure, and learn to modify the start/stop scripts as well as the configuration settings. I really like the treatment given to security, realms and JAAS in the second chapter with more details in the sixth chapter. Most books of this type will leave out security and this book deals with it in the second chapter. Kudos to the authors for that.
I also really like the chapter on performance tuning that deals with real-world applications. The chapter on integration with the Apache webserver is really well written. Most people that deploy Tomcat in production will want to put Apache webserver in front of Tomcat to serve up static content like html and images while letting Tomcat handle servlets and JSPs. Most of the documentation about this Apache httpd - Tomcat integration on the Internet deals with v1.3 of Apache httpd. However, the book deals with Apache 2.0, which is another plus for the book.
I can go on and on - If you are using Tomcat, planning on using Tomcat or just want to learn more about the server, this book will provide you with all of the information to help harness Tomcat's power and wealth of features. I would highly recommend this book as a companion to any servlet/JSP programming book.
** How to run the web based Tomcat admin application
** Tomcat restart issues - this was especially interesting and gets to the heart of what java and tomcat really are.
** How to enable Tomcat's SSI servlet so that it will use your existing server-side includes
The book has lots of hints of the "I know how to do this in Apache httpd, but how do I do it in Tomcat?" variety. This is in addition to an entire chapter devoted to connecting Tomcat to Apache httpd.
The subject of a java web server will automatically bleed over into the subjects of Java and Unix and the book does a great job exposing the timid to Unix and Java concepts that help in understanding these technologies. For example, the book gives detailed instructions for setting up a chroot jail on a Unix type system.
I read the chapter on security several times because it is really foundational. It gets at the excellent security abilities of Java and explains them better than I have seen them explained elsewhere. It also gives the basics of possible vulnerabilities of any web application. The stuff in this section applies broadly to any Servlet container, but has a lot of specifics for Tomcat.
Obviously, all of the stuff in the book is available from the Java, Unix, or Tomcat documentation, but the book acts as a guide, pointing out key things in the documentation.
The only limitation of the book that I could tell was that the authors are exclusively from a Unix background. This has the result of making the book slanted towards Linux/Unix. There are a couple of things that the authors show how to do on Unix but leave the impression that there is no way to do it on Windows. For example they say, "Unix type operating systems, run netstat from the command line to see the open ports. You can do this on Windows as well. They also give a Unix shell script that organizes log files so that they look like Apache httpd log files. It would have been nice to offer one for windows as well or at least give a hint for how to do so. A lot of people use Tomcat on windows as a development environment and they should not be ignored.
In summary, the book succeeds in both broad concepts that deal with running any java web server and in exposing the finer details of Tomcat in particular. Another reviewer asked if this was really "Vital Information for Tomcat Programmers and Administrators" as the subtitle says. I would say yes. You get details of programming Tomcat through the configuration files and crucial details for how Tomcat settings affects how your servlets behave. Perhaps they are asking about messing around with the source code of Tomcat? Then no, it is not about programming Tomcat in that sense.
Tomcat: The Definitive Guide addresses the latest technology in the Tomcat project. You will find the latest information on configuring Tomcat and also on 3rd party tools related to the technology. It's the best book available on the topic...for now. Let's hope the projects reach some level of stability (like Apache, Linux, etc.) at which point books will be easier to write and more helpful.