add-postgres.cli


SUBMITTED BY: antfuentes87

DATE: Nov. 25, 2015, 12:48 a.m.

FORMAT: Text only

SIZE: 517 Bytes

HITS: 660

  1. module add --name=org.postgresql --resources=~/Downloads/postgresql-9.4-1203.jdbc42.jar --dependencies=javax.api,javax.transaction.api
  2. batch
  3. /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)
  4. /subsystem=datasources/data-source=postgresql:add(driver-name=org.postgresql, jndi-name="java:/jdbc/PostgresDS", enabled=true, connection-url="jdbc:postgresql://localhost/test")
  5. run-batch

comments powered by Disqus