当应用程序部署到JBoss时显示一条消息 [英] Show a message, when an application is deploying to JBoss

查看:115
本文介绍了当应用程序部署到JBoss时显示一条消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过JBoss AS 7.1.1部署应用程序时,如何显示一条消息来提醒用户?

How can I show a message to alert users, when I deploy an application over JBoss AS 7.1.1?

我正在使用的技术:

  • 四郎1.2.3
  • Mojarra 2.1.7
  • PrimeFaces 5.1
  • JDK 1.7
  • JBoss 7.1.1

推荐答案

在JBoss AS前面放置一个准系统Web服务器,充当代理.通常,为此使用 Apache HTTPD (您知道,该服务器是PHP人士过度概括为"Apache"的服务器) .然后,将该维护屏幕配置为其HTTP 404/503错误页面.

Put a barebones webserver in front of JBoss AS, acting as a proxy. Usually, Apache HTTPD is being used for this (you know, that server which PHP folks overgeneralize as "Apache"). Then, configure that maintenance screen as its HTTP 404/503 error page.

serveradmin应该知道如何执行此操作.这至少与JSF(也不是编程)无关.顺便说一句,这种Apache HTTPD东西具有更多的好处,例如,与JBoss AS(我们在WildFly前面的ZEEF也在使用它)相比,缓存和URL重写功能更强大.

The serveradmin should know how to do this. This is at least not JSF (nor programming) related. Such an Apache HTTPD thing has more benefits, by the way, such as more powerful caching and URL rewriting as compared to JBoss AS (we're also using it at ZEEF, in front of WildFly).

这篇关于当应用程序部署到JBoss时显示一条消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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