Skip to content

Instantly share code, notes, and snippets.

@jamezp
Created October 9, 2015 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamezp/04fad84df024d2cf85ab to your computer and use it in GitHub Desktop.
Save jamezp/04fad84df024d2cf85ab to your computer and use it in GitHub Desktop.
# Add the postgres module
module add --name=org.postgresql --resources=~/Downloads/postgresql-9.4-1203.jdbc42.jar --dependencies=javax.api,javax.transaction.api
# Add the driver
/subsystem=datasources/jdbc-driver=postgresql:add(driver-module-name=org.postgresql, driver-name=postgresql)
# Add the data-source
subsystem=datasources/data-source=test:add(jndi-name=java:jboss/datasources/TestDS, connection-url=jdbc:postgresql://localhost:5432/test-db, driver-name=postgresql, user-name=user, password=password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment