Last active
May 15, 2017 17:29
-
-
Save vicziani/14e39d811fe57c721c289747d0630065 to your computer and use it in GitHub Desktop.
How to configure DataSource on WildFly
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
module remove --name=org.mariadb | |
module add --name=org.mariadb --dependencies=javax.api,javax.transaction.api --resources=C:\Java\mariadb-java-client-1.5.9.jar | |
/subsystem=datasources/jdbc-driver=mysql:add(driver-name="mysql", driver-module-name="org.mariadb", driver-class-name="org.mariadb.jdbc.Driver", xa-datasource-class="org.mariadb.jdbc.MariaDbDataSource") | |
data-source add --name=virgods --jndi-name=java:/jdbc/virgods --driver-name=mysql --connection-url=jdbc:mysql://localhost/javaee --user-name=javaee --password=javaee | |
<xa-datasource-class>org.mariadb.jdbc.MariaDbDataSource</xa-datasource-class> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment