简体   繁体   English

如何将战争文件的更新推送给客户?

[英]How do I push an update to a war file to clients?

Assuming my clients are running my J2EE WAR application on their intranet, and I have an update for them... how do I push the updated war file to them? 假设我的客户在其Intranet上运行我的J2EE WAR应用程序,并且我为他们进行了更新...如何将更新的war文件推送给他们?

I'd like it to be automatic and require no human interaction on the client's side. 我希望它是自动的,不需要在客户端进行任何人机交互。

Can this be done? 能做到吗?

Any help would be appreciated. 任何帮助,将不胜感激。

Tomcat (if this is your target container...) offers a manager interface that will allow you to deploy/start/stop applications. Tomcat(如果这是您的目标容器...)提供了一个管理器界面,该界面可让您部署/启动/停止应用程序。

I have used both ant and maven tasks to great effect in deploying wars remotely all while being built-in to the build process. 在内置到构建过程中的同时,我已经使用了ant和maven任务对远程部署战争产生了很大的影响。

Depending on your deployment process, this may not work for you, but for dev & qa: highly recommended. 根据您的部署过程,这可能不适合您,但对于dev&qa:强烈建议。

Edit: of course apache has to be configured for this type of access to be allowed. 编辑:当然必须为允许这种访问类型配置apache。

See: Deployer how-to 请参阅: 部署方法

Glassfish has documentation on deployment here . Glassfish在此处提供了有关部署的文档。

Ant tasks are also available here . 蚂蚁任务也可以在这里找到

Glassfish uses Tomcat internally, but the Tomcat Manager is not available as it is a separate application. Glassfish在内部使用Tomcat,但由于它是一个单独的应用程序,因此Tomcat Manager不可用。

If the glassfish admin console can be accessed, it can be used to upload and deploy war files. 如果可以访问glassfish管理控制台,则可以使用该控制台上载和部署War文件。

I'm not sure if you're comfortable giving them access to your source code repository...even in read-only mode. 我不确定您是否愿意让他们访问您的源代码存储库...即使在只读模式下也是如此。

If you are, then you could script up something in ANT to check out the latest version of the source code (using CVS task) and then build the .war file (using WAR task). 如果是这样,则可以在ANT中编写脚本,以检出最新版本的源代码(使用CVS任务),然后构建.war文件(使用WAR任务)。

The only trick would be automatically deploying it once the war has been built. 战争一旦建立,唯一的诀窍就是自动部署它。 Tomcat will automatically deploy applications copied into a certain directory. Tomcat将自动部署复制到某个目录中的应用程序。 For Websphere, see this question and this question . 对于Websphere,请参阅此问题此问题

For other J2EE servers I don't know how it would be done. 对于其他J2EE服务器,我不知道该怎么做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM