After modifying xml files, do I have to always restart the server?
I'm using eclipse(galileo) and struts2 framework and tiles.
It seems that modifying xml files(struts.xml, tiles-config.xml, et开发者_如何学JAVAc) is not affected until I restart the server.
It is very annoying and it takes more time. Is there any way not to restart?
Strictly, you don't have to restart the entire server, just the application itself. But to answer your question more directly, the configuration files (by default at any rate) are just read on startup and the values are held for the life of the application.
For Tiles you might try this init parameter, but I've not tried it personally, so I can't vouch for it.
For Struts, try setting devMode (Link) to true.
<constant name="struts.devMode" value="true" />
For changes to web.xml, and others, I think there's a setting at the application server level to control that, but I doubt that it's standard across all application servers.
精彩评论