Answer the question
In order to leave comments, you need to log in
What are the options for passing parameters in WAR before CDI?
The web application configuration is stored on the file system. How can it be parameterized so that it is possible to deploy two identical applications with different settings?
Working options:
Answer the question
In order to leave comments, you need to log in
I found a funny way, but, unfortunately, platform-specific. JBoss AS 7 uses a view URL vfs:/content/some.war/WEB-INF/some.file
for resources in a WAR.
The easiest way to get this URL is to use an annotation @Resource
from JBoss Solder. If you want, you can always look at the implementation to see what classloaders are used to get the URL of the resource.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question