Skip to content
WildFly Feature Pack for DataSources
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/resources
.gitignore
LICENSE
README.md
pom.xml

README.md

Postgresql and Mysql drivers and datasources packaged as Galleon feature-pack

NB: You must ensure that the WildFly configuration that you are composing with the following layers contains the dependencies needed by the layers to properly operate. As an example, the jpa or cloud-profile WildFly layers contain all the needed dependencies.

You can check this Galleon maven project that makes use of the postgresql-datasource layer with the WildFly cloud-profile to provision a custom WildFly server.

postgresql-driver layer

This layer installs postgresql driver (for current version check in pom.xml) as JBOSS modules inside a WildFly server. The driver is named postgresql.

mysql-driver layer

This layer install mysql driver (for current version check in pom.xml) as JBOSS modules inside a WildFly server. The driver is named mysql.

postgresql-datasource layer

This layer creates a postgresql datasource. The datasource is named PostgreSQLDS. JDBC URL can be configured at server execution time with the following env Variables:

  • POSTGRESQL_DATABASE
  • POSTGRESQL_SERVICE_PORT
  • POSTGRESQL_SERVICE_HOST
  • POSTGRESQL_PASSWORD
  • POSTGRESQL_USER

The JNDI name of the datasource is: java:jboss/datasources/${env.POSTGRESQL_DATASOURCE:PostgreSQLDS}

postgresql-default-datasource layer

This layer sets the postgresql datasource as the ee subsystem default datasource.

mysql-datasource layer

This layer creates a mysql datasource. The datasource is named MySQLDS. JDBC URL can be configured at server execution time with the following env Variables:

  • MYSQL_DATABASE
  • MYSQL_SERVICE_PORT
  • MYSQL_SERVICE_HOST
  • MYSQL_PASSWORD
  • MYSQL_USER

The JNDI name of the datasource is: java:jboss/datasources/${env.MYSQL_DATASOURCE:MySQLDS}

mysql-default-datasource layer

This layer sets the mysql datasource as the ee subsystem default datasource.

You can’t perform that action at this time.