5

In JBoss 4.2.3 we could configure items in

[jboss_server]/deploy/jboss-web.deployer/conf/web.xml

which would be adopted by all applications deployed. We've used this to configure context params, servlets, and default tag files.

We have dozens of apps deployed in war files, and this a very handy tool.

How is this accomplished in JBoss 7.1.1? I've googled and searched but can't seem to find the solution.

6
  • BTW, I've also posted this question here: community.jboss.org/thread/217569
    – slambeth
    Jan 4, 2013 at 19:25
  • Is there something specific you need to be applied to all your applications? some common property or what?
    – Mukul Goel
    Jan 5, 2013 at 10:45
  • 1
    1: there is no provided way to have a global web.xml on AS7 (security concerns) 2: Read 1 again. hope this helps. Sorry but that is what is true.
    – Mukul Goel
    Jan 8, 2013 at 8:07
  • 1
    You can write your own deployer that will do what you want. May 20, 2013 at 9:36
  • 1
    @MukulGoel this should be an answer, not a comment
    – eis
    Jul 26, 2021 at 12:59

1 Answer 1

0

You could try web fragments (part of Servlet API 3.x). You'll be able to apply the same set of filters, mappings, listeners, variables to each web app's context using one META-INF/web-fragment.xml file (inside some WEB-INF/lib/my-common-context.jar, so it'd be easily managed as a simple dependency).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.