2.3. Configuring a datasource for Oracle DB
Oracle is one of the main players in the commercial database field and most readers will probably have come across it at some point. You can download it freely for non-commercial purposes from http://www.oracle.com/technology/products/database/xe/index.html
In this section, we'll connect the server to Oracle Database 11g Express Edition using the latest JDBC driver (11g) available at http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
2.3.1. Installing the JDBC Driver and Deploying the DataSource Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
To make the JDBC driver classes available to the JBoss Enterprise Application Platform, copy the archive
ojdbc6.jar
to the lib directory in the default server configuration (assuming that is the server configuration you’re running).
Then create a text file in the
deploy
directory called oracle-ds.xml
with the following datasource descriptor :
The datasource is pointing at the database/SID called xe provided by default with Oracle XE.
Of course, you need to update the connection url attributes as well as the username/password combination to match your environment setup.