Reputation: 5888
I have a JavaEE application that communicates with other services via RESTful API. The hostname:port of remote services is set through environment entries (<env-entry/>
in web.xml
, not to confuse with environment variables!). This value is later obtained through field annotated with @Resource
.
As the build process is isolated from deployment, I want to override the defaults in web.xml
(where the variable is set to localhost
) that ends up in app.war
to actual hostname. I suppose this is done by providing another web.xml
or jboss-web.xml
(on WildFly) along with , but I can't find how this is set up; I guess this must be a simple process, not involving repackaging the app.war
.
Upvotes: 1
Views: 1607