Create Oracle JDBC Driver as a Module in Wildfly

1. Create a folder under the Wildfly directory:

2. Create a module.xml file in the directory which is created at step 1 and put the content below.

3. Go to the link and download ojdbc7.jar and put the jar file in the directory which is created at step 1.

4. Go to administration menu of WildFly 8.2 (http://localhost:9990/console/App.html)

5. Navigate to Configuration->Connector->Datasources and then Add a datasource

6. Specify the name of the datasource and JNDI name which should be started with java:/


7. Select the Oracle Database Driver as seen below:

8. Specify the jdbc url, username and password information.

9. Finally datasource is created and you have to enable the datasource. After that to check if the connection is valid or not, you could select the datasource in the same page, and then there is a Test Connection button in the connection tab.