Flexible configuration

Thorntail gives you the opportunity to easily configure your applications and your environments via different strategies, based on your background or internal policies.

You can use the following implementations:

  • The thorntail-maven-plugin is used to set a specific fraction property (for example, the port for the default HTTP listener), as follows:
<swarm.http.port>8081</swarm.http.port>   
  • The traditional Java properties that you can set when you launch your application can be used as follows:
$ java -Dswarm.http.port=8081   myapp.jar  
  • The WildFly configuration file that you used in a previous implementation (or when you were migrating from a traditional Jakarta EE architecture to the microservice cloud native architecture) can be set with the following command:
$ java myapp.jar   -c standalone.xml  
  • You can also use a YML file (as implemented in most cloud environments and PaaS), by using the following command:
$ java myapp.jar   -s project-production.yml
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset