如何在WildFly中为您的战争设置版本? [英] How to set version to your war in WildFly?

查看:123
本文介绍了如何在WildFly中为您的战争设置版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Apache中,我使用projectname#1.9-Test ## 1.9-TEST来设置我的战争版本. 相当于WildFly?

In apache I use, projectname#1.9-Test##1.9-TEST to set version my war. What is the equivalent of that in WildFly?

推荐答案

Wildfly不具有tomcat的并行部署功能.据我所知,此功能是Tomcat特有的.

Wildfly doesn't have the parallel deployment feature that tomcat has. As far as I know this feature is pretty unique to Tomcat.

Wildfly Jira中有一个功能请求: https://issues.jboss.org/browse/WFLY-4701

There is a feature request in the Wildfly Jira for this: https://issues.jboss.org/browse/WFLY-4701

但是IMO,要看到这个还需要很长时间.在完整的应用程序服务器中实现此功能要比在servlet容器中实现困难得多.由于应用服务器负责提供核心服务,因此无法轻松地一次处理多个部署.例如,如果您在JMS队列中有一条消息,并且有两个版本的.war文件正在队列中侦听,则该对象可能无法在其中一个部署中进行序列化,而在另一个部署中则无法进行序列化.

but IMO it is going to be a long time before we see this. It is much harder to implement this feature in a full app server than it is in a servlet container. Since the app server is responsible for providing core services there is no easy way handle multiple deployments at once. For example, if you have a message in the JMS queue and there are two versions of the .war file listening on the queue, the object may be unable to serialize in one of the deployments and not the other.

执行此操作的典型方法是在负载均衡器上处理会话到期. JBoss论坛中对此进行了讨论: https://developer.jboss.org/thread/236663

The typical way of doing this is to handle session expiration at the load balancer. There is a discussion of this in the JBoss forums: https://developer.jboss.org/thread/236663

这篇关于如何在WildFly中为您的战争设置版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆