Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Production servers

 
mark evilsizor
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you doing with regard to production JSP/Servlet engines and installing new class files?
I am using Apache 1.9/Tomcat 3.1 and from reading the posts and from our experiencce, it seems like I must stop and start Apache and Tomcat to install the new version of a class file.
So in a production environment, the current "state" of sessions will be lost when this happens. How do you deal with this? Are there servlet engines that handle class updates better?
Thanks
 
Bhupinder Dhillon
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mark evilsizor:
What are you doing with regard to production JSP/Servlet engines and installing new class files?

I am using Apache 1.9/Tomcat 3.1 and from reading the posts and from our experiencce, it seems like I must stop and start Apache and Tomcat to install the new version of a class file.

So in a production environment, the current "state" of sessions will be lost when this happens. How do you deal with this? Are there servlet engines that handle class updates better?

Thanks


Yes iPlanet web server does it automatically and I am sure there must be a lot of servers that do this too. I think it must be configurable somewhere in the server!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Resin, from http://www.caucho.com/ which reloads classes and wars if they change without needing a reboot and usually without affecting other web-apps.
 
mark evilsizor
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resin sounds promising, how does it handle this scenario. I have a standard header bean and it takes 3 parameters to generate each page's header. Now on the development box I change this bean to require 4 parameters and I update the JSP pages that use this bean so that they feed it the required parameters.
With Tomcat to deploy these changes I need to copy over the .jsp and .class files and then stop and start Apache/Tomcat, and people already logged in loose their session. Can Resin handle this scenario without restarting?
Another scenario is that someone is logged into our site and they have items in their shopping cart, which is a java class. On my test box I modify the cart class. Now I need to deploy it. Again with Apache/Tomcat I must stop and start the server processes which empties the JVM and therefore the customer's cart. How does Resin handle this and resolve any differences between the old and new revisions of the cart class?
Originally posted by Frank Carver:
I use Resin, from http://www.caucho.com/ which reloads classes and wars if they change without needing a reboot and usually without affecting other web-apps.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic