-
1. Re: How to configure settings for the whole JBoss and not only per deployment?
bcn Nov 5, 2011 6:35 AM (in response to mozo)Hi,
have you found any solution?
I have a related question, how can I customize the error page 404 of AS 7?
Not in the application web.xml, but for the whole AS.
When an application is down for maintenance, JBoss (Web) shows a standard 404 page, I would like to change it to something
nice like "We are on maintencance ..."
Thanks
-
2. Re: How to configure settings for the whole JBoss and not only per deployment?
rmaucher Feb 3, 2012 10:58 AM (in response to bcn)To summarize quickly, freeform global settings are not going to be provided, since that doesn't quite fit in the very strict configuration style of the domain model. Some of this can be configured using your own deployers, like how JSF is integrated (it adds its metadata, like filters, to the web deployment metadata).
The global error page is a probelm that could be worked around using a well designed root webapp normally. Similarly, global valves are not customizable (which is why there are hardcoded elements for the functionality like <sso>, <rewrite>, etc). This was designed like that on purpose, they didn't want the old server.xml basically, but obviously some of the hacking capabilities are gone.
Hopefully, that sheds some light on why things are the way they are.
-
3. Re: How to configure settings for the whole JBoss and not only per deployment?
karink Feb 9, 2012 9:48 AM (in response to rmaucher)Hi Remy
thanks for your answer.
I have some questions to verify if I understood you correctly
Remy Maucherat schrieb:
To summarize quickly, freeform global settings are not going to be provided, since that doesn't quite fit in the very strict configuration style of the domain model. Some of this can be configured using your own deployers, like how JSF is integrated (it adds its metadata, like filters, to the web deployment metadata).
Can you pls. give me a hint what this concretely would imply
Are the steps below correct?
- I write my own MyOwnDeploymentProcesser, which inherits from org.jboss.as.server.deployment.DeploymentUnitProcessor and sets e.g. my global servlet filters.
- I write my own Extension using Guide https://docs.jboss.org/author/display/AS71/Example+subsystem
- In my own Extension I will use the performBoottime to initialize the Deployer (MyOwnDeploymentProcessor)
...
Would that be the way you have recommended above?
Thanks for your help