Configuring env-entry values in WebSphere Liberty? -
In the entire profile, you can change the values for an app-defined envideo in an app's web.exm file while deploying During and after Is there a feature in WebSpot Liberty Profile?
Sample env-entry:
& lt; env-entry & gt; & Lt; Details & gt; Some configured strings & lt; / Description & gt; & Lt; Env- Login Name & gt; MyConfigString & lt; / env- Login Name & gt; & Lt; env entry type & gt; Java.lang.String & lt; / Env entry type & gt; & Lt; env-entry-value & gt; Dev-value should be replaced in production during deployment & lt; / Env-entry-value & gt; & Lt; / env entry & gt; This env-entry is injected with an @resource (name = "MyConfigString") annotation.
(which runs on Liberty) describes how to use jndiEntry elements in server.xml I tried this on Liberty 8.5.5.3 but it is not working and still web Injects the default value from .xml.
Has anyone found a working method for configuring the entry-entry value in Liberty?
Liberty Profile Currently configures bindings without modifying ibm - * - bnd.xml files in the application Does not support As an alternative solution, you can use:
@Resource (lookup = "MyConfigString") ... and in the app:
& lt; JndiEntry jndiName = "MyConfigString" value = '"xyz"' / & gt; ... as described in server.xml.
Comments
Post a Comment