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

查看:23
本文介绍了当应用程序部署到 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 前面放置一个准系统网络服务器,充当代理.通常,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.

服务器管理员应该知道如何做到这一点.这至少与 JSF(或编程)无关.顺便说一下,这种 Apache HTTPD 的东西有更多的好处,比如与 JBoss AS 相比更强大的缓存和 URL 重写(我们也在 ZEEF 中使用它,在 WildFly 前面).

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天全站免登陆