diff --git a/cayambe/README.adoc b/cayambe/README.adoc index e4b78a8..704fee0 100644 --- a/cayambe/README.adoc +++ b/cayambe/README.adoc @@ -14,5 +14,75 @@ source \sql\mysql.sql - source \test_data.sql + source \sql\test_data.sql +== Setup WildFly + + download WildFly 11.0.0.Final from http://wildfly.org/downloads/ + + download MySQL Connector jar from https://dev.mysql.com/downloads/connector/j/ + + create directory structure in WildFly exploded location of /modules/system/layers/base/com/mysql/main + + copy .jar for MySQL Connector into this directory + + create a file in the same directory called module.xml with the following content: + +[source,xml] +---- + + + + + + + + + + + +---- + + where the file name specified in `path` is the same as the file you copied into the directory + + edit /standalone/configuration/standalone.xml within WildFly installation to have the following `datasources` subsystem config: + +[source,xml] +---- + + + + jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE + h2 + + sa + sa + + + + jdbc:mysql://localhost:32768/cayambe + com.mysql.jdbc.Driver + mysql + + cayambe + cayambe + + + + true + + + + + + org.h2.jdbcx.JdbcDataSource + + + com.mysql.jdbc.jdbc2.optional.MysqlXADataSource + + + + +---- + + run `mvn clean install` in /cayambe and then copy /cayambe/cayambe-ear/target/cayambe.ear into /standalone/deployments of WildFly