[英]Can we update a jar / war file in a deployed server and then reload the new jar / war file?
Can we update a jar / war file in a deployed server and then reload the new jar / war file ? 我们可以在已部署的服务器中更新jar / war文件,然后重新加载新的jar / war文件吗? if so how simple we can achieve this, and please if possible list web servers which support this feature.
如果是这样,我们可以轻松实现这一目标,请尽可能列出支持此功能的Web服务器。
Yes. 是。
All major Java EE Servlet containers support this. 所有主要的Java EE Servlet容器都支持此功能。 All that I've worked with anyway, which includes Glassfish, Tomcat, WebSphere, WebLogic and JRun.
无论如何,我一直使用的所有工具,包括Glassfish,Tomcat,WebSphere,WebLogic和JRun。
I haven't used the other Oracle container, but I would think it does too. 我没有使用过其他Oracle容器,但我认为也可以。
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. 也就是说,除非您在下面使用JavaRebel ,否则它们都不可靠地支持所有功能(它们将检测大多数更改,但是某些类型的类更改始终需要重新启动)。
Just by copying the 'war' file in the Server domain folder will automatically deploy it. 仅通过复制Server域文件夹中的“ war”文件,即可自动部署它。 I have done it with glassfishv3.1
我已经用glassfishv3.1完成了
The path for windows is C:\\Program Files\\glassfish-3.1\\glassfish\\domains\\domain1\\autodeploy Windows的路径为C:\\ Program Files \\ glassfish-3.1 \\ glassfish \\ domains \\ domain1 \\ autodeploy
Once pasted another file gets created automatically [if the server is on] in the same directory 粘贴后,将自动在同一目录中创建另一个文件(如果服务器已打开)。
For the editing purposes the 'war' file can be opened with programs like WinRar or WinZip 为了进行编辑,可以使用WinRar或WinZip等程序打开“ war”文件
Just open the files that you want to change and save it when the winrar asks for it. 只需打开要更改的文件并在winrar要求时将其保存。
JBoss. JBoss。 Just drop in the files in the correct location.
只需将文件放在正确的位置即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.