简体   繁体   English

同一Java应用程序服务器中应用程序的不同版本

[英]Different Versions of an application in same java application server

We are utilizing citrix netscalar with more than 20 glassfish java application servers. 我们将citrix netscalar与20多个glassfish Java应用程序服务器一起使用。 Unfortunately we have to remove previous application before deploying a new version of it since we have same context for these two different application. 不幸的是,由于这两个不同的应用程序具有相同的上下文,因此我们必须在部署新版本之前删除先前的应用程序。 This error-prone process leads some problems due to lack of attention in builds or other problems. 由于缺少构建注意事项或其他问题,此易于出错的过程导致了一些问题。 In an urgent case, we simply want to redirect to all traffic to previous application. 在紧急情况下,我们只想将所有流量重定向到先前的应用程序。

What is the best practice to run different version of an application in a substantial number of servers in same time? 在大量服务器上同时运行不同版本的应用程序的最佳实践是什么?

Edit: Another concise and prevailing example which came to my mind is Google Application Engine. 编辑:我想到的另一个简洁而普遍的示例是Google Application Engine。 In GAE you can deploy different versions as much you want. 在GAE中,您可以根据需要部署不同的版本。 However traffic can be redirected to smoothly different application at runtime. 但是,可以在运行时将流量重定向到平稳的其他应用程序。

Thanks 谢谢

The best solution these days is to use Virtual Machines. 这些天最好的解决方案是使用虚拟机。 You create an image with the app and just run it in a VM. 您可以使用该应用程序创建映像,然后在VM中运行它。 The VMs act just like independent machines. VM的行为就像独立的计算机一样。

Different URLs or port numbers would be one way. 不同的URL或端口号是一种方法。 You'd have both available at the same time. 您将同时拥有两个。

As far as deployment goes, there ought to be a way to script this so a single version is pushed out to all the servers simultaneously. 就部署而言,应该有一种脚本编写方式,以便将单个版本同时推送到所有服务器。

暂无
暂无

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

相关问题 通过同一用户在同一 Linux 服务器上为不同的应用程序运行两个版本的 java - Running two versions of java on the same linux server via same user for different application 如何在同一应用程序中使用不同版本的 class? - How to use different versions of a class in the same application? Java EE应用程序中的不同版本的lib - Different versions lib in Java EE application 创建Java应用程序的不同构建版本 - Creating different build versions of a Java application 同一服务器上不同数据库的Java应用程序服务器连接池 - Java application server connection pooling for different databases on same server 在相同的应用程序上下文中保存相同的Spring bean的两个不同版本 - Holding two different versions of the same spring bean in the same application context 当Java Web服务部署在运行同一应用程序服务器的不同操作系统上时,同一消息的不同数字签名 - Different digital signature for the same message when Java webservice deployed on different operating systems that run the same application server 如何在一个Java应用程序中处理不同版本的xsd文件? - How to handle different versions of xsd files in one java application? 使用不同的Java更新版本| 这如何影响应用程序? - using different java update versions | How does this affect the application? 在同一Java应用程序中使用不同的Kerberos KDC进行身份验证 - Authenticating with different Kerberos KDC in the same Java application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM