aspose file tools*
The moose likes Tomcat and the fly likes Deploying Apps w/o shutting  down? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying Apps w/o shutting  down?" Watch "Deploying Apps w/o shutting  down?" New topic
Author

Deploying Apps w/o shutting down?

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
Is this currently possible?
Could I update one jar file w/o shutting down?
Could I change log preferences w/o shutting down?
Can I remove or stop one webapp w/o shutting down?
Scott J
Greenhorn

Joined: Apr 27, 2004
Posts: 1
Could you clarify what you meant in "shutting down"? Do you mean you need to shutdown the server while take the actions described and/or restart the server to take it effect or restart the computer?

Thanks
Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I meant stopping and starting Tomcat
Charles Hasegawa
Ranch Hand

Joined: May 22, 2003
Posts: 117
Originally posted by Anthony Smith:
Is this currently possible?
Could I update one jar file w/o shutting down?
Could I change log preferences w/o shutting down?
Can I remove or stop one webapp w/o shutting down?

A lot depends on your Tomcat configuration, but...

Yes, you can deploy without shutting down. There can be issues - for instance, I've seen where if the WAR file you are copying into the webapps directory is very large, tomcat can start deploying before the whole thing is there.

You can replace a jar in a deployed application's WEB-INF/lib directory and using the manager, reload the application.

Dunno about the logs.

You can deal with individual applications through Tomcat's manager (assuming you configured a manager user in the tomcat-users.xml file).
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
With log4j, you can change preferences in the log4j.properties file. I put this in the conf directory for tomcat. If you use the method PropertyConfigurator.configureAndWatch(), changes will take effect without even restarting the app.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Tomcat manager is good tool for start/stop/reload/remove web application in tomcat.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Apps w/o shutting down?
 
Similar Threads
email validation
Eclipse Workbench problem
lock the the entire database
Redirecting Problem about Output stream: int read() AND write(int)! Why int?
Jasper reports with Spring 3