Skip to content

Instantly share code, notes, and snippets.

@jamezp
Last active March 7, 2022 23:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jamezp/3d3fe3bf57fe99ea91c1 to your computer and use it in GitHub Desktop.
Save jamezp/3d3fe3bf57fe99ea91c1 to your computer and use it in GitHub Desktop.
module add --name=org.postgresql --resources=~/Downloads/postgresql-42.3.3.jar --dependencies=java.desktop,java.logging,java.management,java.naming,java.security.jgss,java.security.sasl,java.sql,java.transaction.xa,java.xml
batch
/subsystem=datasources/jdbc-driver=org.postgresql:add(driver-name=org.postgresql, driver-module-name=org.postgresql, driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
/subsystem=datasources/data-source=postgresql:add(driver-name=org.postgresql, jndi-name="java:/jdbc/PostgresDS", enabled=true, connection-url="jdbc:postgresql://localhost/test")
run-batch
@boris-unckel
Copy link

module add --name=org.postgresql --resources=~/Downloads/postgresql-42.3.3.jar --dependencies=java.desktop,java.logging,java.management,java.naming,java.security.jgss,java.security.sasl,java.sql,java.transaction.xa,java.xml

@jamezp
Copy link
Author

jamezp commented Mar 7, 2022

Updated, thanks @boris-unckel!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment