开发者

how reload the servlet without restart the tomcat6 server

If I have multiple Host definition on my $TOMCAT_HOME/conf/server.xml How can I reload the servlet without restart the tomcat6 server? What are the parameters for use Tomcat like with multiple host?

unpackWARs autoDeploy liveDeploy deployXML etc.

---new text added-- I don't like restart manually the tomcat manager, because I have differents Virtual Host configured. If a user uploaded a new servlet version, I prefer that tomcat automatically reload the new version WITHOUT the sysadmin interven开发者_StackOverflow中文版tion in order to restart manually the complete tomcat server.

A sample of context definition inside the server.xml is like this:

<Context path="" docBase="/webapps/client.com/servlets" reloadable="true" privileged="true"/>

But, when this client.com has uploaded a new servlet, the tomcat doesn't refresh a new version in many days, and he needs call me in order to restart the tomcat server. This intervention affects the normal operation to other users in the same server.


Check this thread (in short - set <Context reloadable="true" />) Also, I think running tomcat in debug mode should allow that. (If you don't run it through an IDE, add -Xdebug


Reloading of servlet contexts can be done via the Tomcat manager application. If you tell what you intend by reloading it'd be easier to give a more specific answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜