External properties file with Weblogic

前端 未结 5 638
我寻月下人不归
我寻月下人不归 2020-12-16 21:33

I\'m looking for the best way to use an external properties file with an application that is going to be deployed on Weblogic 10.3 server. I read a number of articles on the

5条回答
  •  遥遥无期
    2020-12-16 22:07

    Approach #1

    Update your server startup script to pass below system variable to JVM (below is example on Windows OS)

    call "%DOMAIN_HOME%\bin\startWebLogic.cmd" "-Dcom.mycompany.myapp.EXTERNAL_CONFIG_PATH=/mycompany/myapp/config" %*
    

    Using this variable which points to your configuration directories, read configurations from there. You will need to make this setting on each server where you want to deploy your application.

提交回复
热议问题