<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.0" name="org.postgresql"> <resources> <resource-root path="postgresql-Y.X-Z.jdbcV.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
<driver name=”postgresql” module=”org.postgresql”> <xa-datasource-class> org.postgresql.xa.PGXADataSource </xa-datasource-class> </driver>
<datasource jndi-name="java:jboss/postgresDS" pool-name="postgresDS" enabled="true" jta="false" use-java-context="true" use-ccm="false"> <connection-url> jdbc:postgresql://192.z.y.x:5432/yourdatabase </connection-url> <driver-class> org.postgresql.Driver </driver-class> <driver> postgresql </driver> <pool> <min-pool-size> 2 </min-pool-size> <max-pool-size> 20 </max-pool-size> </pool> <security> <user-name> urusername </user-name> <password> urpasswort </password> </security> <validation> <validate-on-match> false </validate-on-match> <background-validation> false </background-validation> <background-validation-millis> 0 </background-validation-millis> </validation> <statement> <prepared-statement-cache-size> 0 </prepared-statement-cache-size> <share-prepared-statements> false </share-prepared-statements> </statement> </datasource>
I generated a keystore file mperdikeas-jboss-server.jks using this Makefile and then changed the <security-realm> element in the JBoss configuration file as shown in this XML fragment
See also commit 7fe163a in the git repository at: ~/EAP-7.1.0/jboss-eap-7.1/standalone/configuration
https://stackoverflow.com/a/56549496/274677
JBoss EAP Version | WildFly Version |
JBoss EAP 7.2 | WildFly 14.0.1 |
JBoss EAP 7.1 | WildFly 11 |
JBoss EAP 7.0 | WildFly 10 |
JBoss EAP 6.4 | JBoss AS 7.5 |
JBoss EAP 6.3 | JBoss AS 7.4 |
JBoss EAP 6.2 | JBoss AS 7.3 |
JBoss EAP 6.1 | JBoss AS 7.2 |
JBoss EAP 6.0 | JBoss AS 7.1 |