1 Reply Latest reply on Mar 12, 2018 11:58 AM by mchoma

    Isolated way to set external Wildfly WAR parameters?

    vmarcinko

      Hi all,

       

      I am TOTAL Wildfly newbie, wanting to deploy to Spring Boot applications to Wildfly packaged as 2 WARs. I deploy them to following directory:

      wildfly-10.1.0.Final/standalone/deployments

      Now, Spring Boot applications can receive parameters in multitude of ways (24. Externalized Configuration ), such as servlet context parameters, system properties etc...

       

      Flom my shallow glance at Widlfly deployment options, I decides to use system properties as a means to pass externally some parameters to my WARs, and it works fine when I deploy single WAR, but because I have 2 WARs (2 spring boot applications), I have to set 2 different values for same parameter (same name), so I cannot use system property for that, because system properties are shared for all WARs deployed there.

       

      Is there some toher mechanism so that I can specify in isolated way system properties, or somehow externally set servlet context parameters, or maybe something similar, so I could configure each WAR separately, even when using same parameter names?

       

      Regards,

      Vjeran