Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat versions and book

 
gayathri sridhar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Budi,

As tomcat undergoes revision,
version 4.x 5.x and now 5.5, what part of the container gets rewritten /improved upon. Is 5.x a complete rewrite of 4.x?
Does the book cover 5.x as well?

thanks,
gayathri
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question had been answered in that thread in the past... I guess, you might have missed that thread, in which Alvin asked a lot of questions about the book...

Hope it helps...
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is 5.x a complete rewrite of 4.x?


My question :: No.

I think, Tomcat should be use CORE System in all/almost version.

Don't use rewrite , use Reuse is ok.

And you can see more detail at :: http://cvs.apache.org/viewcvs.cgi/#dirlist
 
Budi Kurniawan
author
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book covers Tomcat 4 and 5. 5 is not a complete rewrite of 4. The main difference is that tomcat 5 supports Servlet 2.4 and JSP 2.0, while 4 supports Servlet 2.3 and JSP 1.2.

Internally, the servlet container in 5 is more efficient. For example, in 4 each component that needs background processing has its own thread. In 5 one thread is shared by all the components.

Some background processing tasks include:
1. invalidating expired session objects.
2. reloading an application whose web.xml or one of its classes has changed.

etc...

This is one of the topics "How Tomcat Works" discusses in detail.
 
gayathri sridhar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ko Ko Naing:
Your question had been answered in the past...


thanks . It does answer a part of my question. But it seems to be more of a conversation between you and alvin. and yes and i was curious about the container module that normally gets rewritten.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic