简体   繁体   中英

How to use custom system property resolver in Wildfly

We use Wildfly 9.0.2 server and we need to use custom property resolver to inject values to system-properties in standalone.xml, to make something like:

  <system-properties>
    <property name="my-property" value="${custom:property-value-key}" />
  </system-properties>

Is there mechanism similar to the one provided by Tomcat (org.apache.tomcat.util.digester.PROPERTY_SOURCE property)?

Thank you!

由于没有简单的编程方法将自定义属性注入standalone.xml,因此我们决定修改启动sh脚本以从Consul读取数据并将环境变量设置为WIldfly进程,然后在standalone.xml中将其作为$ {env.QLEO_DB_URL}读取。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM