Working with Thorntail/Kubernetes, is it possible to use dynamic values on project_defaults.yml? For example:
thorntail:
ejb3:
thread-pools:
default:
max-threads: ${my.variable}
Where my.variable
will be configured on the dashboard of a specific module.
The idea is to replace standalone.xml values without performing a new deploy every time I need to change the value.
That is in theory possible, because Thorntail is based on WildFly, which allows changing some configuration values without restart. Your example refers to a WildFly configuration value, so it might be possible. Those configuration values in Thorntail that don't come from WildFly don't allow for this at all.
You can use the
management
fraction to let Thorntail expose the WildFly management interface. Then, you can use the WildFly management client (ModelControllerClient
) to issue management operations. However, I'd discourage you from doing this, as Thorntail isn't really designed for it.(Also, Thorntail has reached its end of life. See here for more: https://thorntail.io/posts/the-end-of-an-era/)