Can we update a jar / war file in a deployed server and then reload the new jar / war file ? if so how simple we can achieve this, and please if possible list web servers which support this feature.
views:
518answers:
3
A:
JBoss. Just drop in the files in the correct location.
Thorbjørn Ravn Andersen
2009-07-24 10:34:08
thank you for your answer
Venkat
2009-07-24 11:51:31
+1
A:
Both Tomcat and Jetty will support a hot deploy. They simply monitor the deploy directory for changes, so you can just copy the .war
file into that directory, and the server will undeploy/redeploy.
Brian Agnew
2009-07-24 10:43:39
I don't believe so. I'm only looking at .wars. Where would you drop a .jar ? It's not a web app in itself, so are you looking to redeploy a common lib ?
Brian Agnew
2009-07-24 12:10:25
+1
A:
Yes.
All major Java EE Servlet containers support this. All that I've worked with anyway, which includes Glassfish, Tomcat, WebSphere, WebLogic and JRun.
I haven't used the other Oracle container, but I would think it does too.
That said, none of them support it all that reliably (they'll detect most changes, but there are certain types of class changes that will always require a restart), unless you're using JavaRebel underneath.
Jack Leow
2009-07-24 10:57:56