Created
October 20, 2021 09:47
-
-
Save JoonHoSon/58dda35455bf0ca56a8a1a5b7e32a4ec to your computer and use it in GitHub Desktop.
Wildfly PostgreSQL JNDI 설정(CLI 이용)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$./jboss-cli.sh | |
connect | |
module-add --name=org.postgres --resources=/<path>/<to>/postgresql-x-x.jar --dependencies=javax.api,javax.transaction.api | |
/subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgres",driver-class-name=org.postgresql.Driver) | |
data-source add --jndi-name=java:/<JNDI>/<NAME> --name=<NAME> --connection-url=jdbc:postgresql://<IP>:<PORT>/<DBNAME> --driver-name=postgres --user-name=<ID> --password=<PASSWORD> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment