-
1. Re: Installation Oracle database driver 12c ojdbc7.jar as module
wdfink Feb 19, 2014 6:53 AM (in response to schlumpf)1 of 1 people found this helpfulCould you show your commands and what the result is in your modules directory?
normally for a db driver you need to have javax.api and javax.transaction.api as dependency
-
2. Re: Installation Oracle database driver 12c ojdbc7.jar as module
schlumpf Feb 19, 2014 9:00 AM (in response to wdfink)Hi Wolf-Dieter,
I have used the command 'module add --name=oracle.jdbc --resources=/tmp/ojdbc7.jar --dependencies=javax.api,javax.transaction.api' resulting in the folder structure (directories) $JBOSS_MODULEPATH/oralce/jdbc/main with the ojdbc7.jar and module.xml file in it.
Then I have started the administration console and wanted to create a new JDBC datasource, but there isn't any Oracle driver to select.
-
3. Re: Installation Oracle database driver 12c ojdbc7.jar as module
wdfink Feb 19, 2014 1:34 PM (in response to schlumpf)Not I got it.
You 'only' add the jar as a module to the server directory, nothing more.
Now you need to add the driver and datasource via CLI or console
i.e. try:
jboss-cli.sh
>/subsystem=datasources/jdbc-driver=Oracle:add(driver-name="Oracle", driver-module-name="oracle.jdbc", driver-xa-datasource-class-name="oracle.jdbc.xa.client.OracleXADataSource")
>/subsystem=datasources/data-source=Oracle:add(jndi-name=java:/Oracle, connection-url= jdbc:oracle:thin:@x.x.x.x:1521:orcl, driver-name=Oracle, user-name=X, password=X)
I've looked into the http management but did not found a possiblility to add the driver, maybe it's intentional as you can't add the module from here.
So ATM you need to add the datasources-drivers-driver by CLI
-
4. Re: Installation Oracle database driver 12c ojdbc7.jar as module
schlumpf Feb 24, 2014 10:11 AM (in response to wdfink)Hi Wolf-Dieter,
thank you for you help, it works fine.
-
5. Re: Installation Oracle database driver 12c ojdbc7.jar as module
wdfink Feb 24, 2014 11:10 AM (in response to schlumpf)1 of 1 people found this helpfulHello Knut,
great to know that it's working.
Could you mark the related answer and the thread as answered to help other find the solution quicker?