-
1. Re: Global web.xml configuration
nickarls Jan 7, 2013 2:05 AM (in response to lambeths)I'm not aware of any "überdescriptors" that would apply on a higher then per-application basis
-
2. Re: Global web.xml configuration
lambeths Jan 7, 2013 10:48 AM (in response to nickarls)That's unfortunate. I guess we're only upgrading to 6.1 now, because this configuration is still possible in that version. I'll have to re-enginneer for these solutions I guess.
-
3. Re: Global web.xml configuration
ssilvert Jan 7, 2013 2:16 PM (in response to lambeths)Maybe you should put in a feature request at https://issues.jboss.org/browse/AS7. Or better yet, contribue the feature yourself. You could write a subsystem that adds things every web app. Should be pretty straightforward.
Stan
-
4. Re: Global web.xml configuration
nickarls Jan 7, 2013 2:36 PM (in response to ssilvert)Are there any other descriptor files that could benefit from this functionality? How about a global ejb-jar.xml where you could bind a certain interceptor to all EJBs? How should these template xml files be managed and how should one configure your application so that it doesn't get these descriptions merged in? I wouldn't mind a "global template subsystem" (empty by default)
-
5. Re: Global web.xml configuration
lambeths Jan 7, 2013 4:56 PM (in response to ssilvert)That's a good idea... although, being that this was available in all previos versions of JBoss, it makes me wonder if the architects of JBoss7 left it out on purpose. Perhaps there are more desirable techniques for what I'm trying to accomplish.
-
6. Re: Global web.xml configuration
ssilvert Jan 7, 2013 5:18 PM (in response to lambeths)I don't remember the reason it was left out, but I do know that one of the AS7 goals was to have all global configuration in a single file. That's why I suggested a subsystem. It would make all the settings configurable through DMR/CLI and editable in config files like standalone.xml.
Another option would be to add the web settings to the web subsystem, ejb settings to the ejb subsystem, etc.
-
7. Re: Global web.xml configuration
jaikiran Jan 8, 2013 12:06 AM (in response to ssilvert)I moved this to JBossWeb forum. Maybe someone there might know more about the reason for not having similar functionality as a server level web.xml configurations, applicable for all web applications by default.
-
8. Re: Global web.xml configuration
jfclere Jan 8, 2013 2:25 AM (in response to jaikiran)there isn't a global web.xml most the configuration is done via the element static-resources or jsp-configuration of the web subsystem.