Hotswap servlet code in Tomcat 5?

2004-02-23 Thread Samuel Cheung
With Tomcat 5, I can deploy/undeploy my WAR file thru the Admin Interface. What happens if there are sessions running the servlet when I try to hotswap to a newer version (i.e. undeploy the current version and re-deploy a newer version)? How will this work?

RE: http://www-106.ibm.com/developerworks/library/j-nioserver/

2004-02-04 Thread Samuel Cheung
Sorry, I have a newbie question on this subject. If the servlet API adds support for java.nio library (described in section 3.3 here) http://www.coredevelopers.net/library/j2ee/servlet24/ar01s03.jsp#d0e533, then will it make sense for servlet container (e.g. Tomcat ) to use the nio the way

Design Question in TomCat 5

2004-01-29 Thread Samuel Cheung
Hi, I read an onjava.com article regarding new features in Tomcat 5. In that article, it said a whole new mapper was implemented that generates little or no garbage (lots of object recycling is going on in there). And that improves performance. But from Sun's web page, it said do not pool

Recycle objects in TomCat, Performance gain?

2001-11-14 Thread Samuel Cheung
Hi, In TomCat's source code, I notice it recycles objects (e.g. RequestBase, StandardSession). But in Sun's documentation, with HotSpot Virtual machine, pooling objects will hinder performance (see below). Could someone please tell me are there advantages of using object pooling in TomCat?