How Tomcat Works: A Guide to Developing Your Own Java Servlet Container Paperback – 1 Jan 2005
|New from||Used from|
|Paperback, 1 Jan 2005||
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
"It's really excellent. . . . I can't put the thing down!" Richard Monson-Haefel, author, "Enterprise JavaBeans" and "J2EE Web Services""
About the Author
Budi Kurniawan is known for his clear writing style. A consultant at Brainy Software Corp., he has written software licensed by Fortune 100 companies and architected and developed large scale applications for various organizations around the world. His other books include "Servlet & JSP: A Tutorial" and "Android Application Development: A Beginner's Tutorial."
Most Helpful Customer Reviews on Amazon.com (beta)
Although Tomcat is pretty easy to set up and use as a developer, to really understand the internals of the server one must wade through thousands of lines of code and even then it can be a daunting task. Furthermore, understanding the "how" is only half the battle. To really gain an understanding of the server, one must understand "why" the Jakarta folks did things the way they did.
Budi (and Paul Deck) did a great job of not just giving a code review of the server, but also describing the reasons why the server is constructed the way it is.
Having written a few Tomcat Components the hard way - trial and error - I can say the insights given in this book have helped a great deal.
But, as I say in the title, this book is not for the squeemish. There is a sizable amount of fairly complex code. To really understand the point of the book, the reader must be VERY familiar with the Java language, Java Web Applications, TCP/IP, and be willing to ponder a code listing for a while to really understand it. In other words, this is not what I would call a "passive read".
If you have the basic understanding necessary, this book will shed a great deal of light on one of the darker corners of server-side Java development.
This is great read for anybody wanting to really understand the internals of Tomcat.
six free chapters from the publisher's site ([...] I decided to buy. This is a truly amazing book that covers such an advanced topic in such a simple language. I feel I do understand the internals of Tomcat now. The first Tomcat component you can build after reading this book is as simple as 20 lines or so, as demonstrated in the publisher's site. Supporting technologies, such as shutdown hook, Digester, JMX, are also well explained so that you will be really prepared to wade through complex code.
Surprisingly, the language is simple. If you know a bit of Java, you can follow the chapters comfortably. It starts from a basic HTTP server and servlet container and works its way up to a full Tomcat. You'll enjoy it if you have interest in Java programming.
My biggest problem with this book is that is just stops short in so many places. In general the writing is very dry, even for a technical topic such as this. Additionally, the formatting of the book makes much of it hard to follow... the code seems to flow right into the text in parts. I believe this book was published independently, so I imagine there were budget constraints, but in this case I believe it sorely hurt the readability of the book. The authors' convention of class naming is also highly irregular and leads to much confusion in regards to which version of which class is being referenced. Finally, I was highly upset to see that the author doesn't touch on the inndards of Coyote (Tomcat5's new Connector) at all, even though it claims to "cover Tomcat 4 and 5". This is a highly significant package that is essential to understanding how connectors work in Tomcat5.
If you have the time and desire to learn Tomcat from the ground up, this should be fine. However, if you're looking for a reference for a specific part of Tomcat (such as the Connector, in my case), you might want to look further.
Another thing about this book is it is enjoyable, you want to start the next one as soon as you finish a chapter.
So, this is something you should read from page 1 to the last. The codes were based on TOmcat 4 and 5. They are very similar so the authors put notes explaining the differences between the two versions.
You'll learn a lot reading this book. The author started from a few lines of code in Chapter 1 (a Java web server) and built a simple servlet container (in CHapter 2) based on the code in chapter 1. It looks so simple and you don't realize that in the last chapter you get a full-blown Tomcat. On the way, you'll learn a lot of advanced Java topics too.
There are quite many spelling errors and I would really subtract half a star if I could. However, considering its merit I was happy to overlook it this time.