Another solution is to define your datasource(s) in a yaml file like this:
wildfly-configuration:
subsystem:
datasources:
jdbc-driver:
postgresql:
driver-name: postgresql
driver-xa-datasource-class-name: org.postgresql.xa.PGXADataSource
driver-module-name: org.postgresql.jdbc
data-source:
PostgreSQLDS:
enabled: true
exception-sorter-class-name: org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter
jndi-name: java:jboss/datasources/PostgreSQLDS
jta: true
max-pool-size: 20
min-pool-size: 0
connection-url: "jdbc:postgresql://localhost:5432}/demo"
driver-name: postgresql
user-name: postgres
password: postgres
validate-on-match: true
background-validation: false
background-validation-millis: 10000
flush-strategy: FailingConnectionOnly
statistics-enable: false
stale-connection-checker-class-name: org.jboss.jca.adapters.jdbc.extensions.novendor.NullStaleConnectionChecker
valid-connection-checker-class-name: org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker
transaction-isolation: TRANSACTION_READ_COMMITTED
and add it like define here [1].
Emmanuel
[1]:
https://docs.wildfly.org/wildfly-proposals/core/WFCORE-5343_Support_YAML_files_for_configuration_customization.html
Le 19/07/2025 à 14:02, chandra s a écrit :
> Hi,
>
> Thank you for responding. While executing CLI scripts modifies standalone.xml, I’m exploring a configuration approach that uses a
> separate XML file. The goal is for WildFly to automatically load updated parameters from this external source during startup and
> controlled by a separate file.
>
> On Friday, July 18, 2025 at 2:55:27 PM UTC-4 Wolfgang wrote:
>
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
wildfly+u...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/wildfly/939bd1ea-7862-4b1b-b43e-e81e17baaf58n%40googlegroups.com
> <
https://groups.google.com/d/msgid/wildfly/939bd1ea-7862-4b1b-b43e-e81e17baaf58n%40googlegroups.com?utm_medium=email&utm_source=footer>.