-
Enhancement
-
Resolution: Done
-
Major
-
7.4.0.GA
-
3
-
False
-
False
-
-
-
-
-
-
Undefined
-
+
-
-
EAP DOC Sprint 8:April 12 - 23
We have seen newer JDBC drivers requiring other dependedencies.
We should update our docs to list these as the suggested dependencies for JDBC drivers deployed in a module. A custom module in a module.xml only sees the classes in its resource-root jars and dependencies, this means classes normally visible in the JDK are not visible by default. Using dependencies as shown below will make the JDK classes visible as well as the javaee apis provided by EAP and would avoid users having issues when configuring their JDBC driver in a module.xml
<dependencies> <module name="javaee.api"/> <module name="sun.jdk"/> <module name="ibm.jdk"/> <module name="javax.api"/> </dependencies>
Any examples such as the mysql and the other JDBC drivers:
<module xmlns="urn:jboss:module:1.1" name="com.mysql"> <resources> <resource-root path="mysql-connector-java-8.0.12.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
Similar for the CLI commands for the example JDBC drivers:
module add --name=com.mysql --resources=/path/to/mysql-connector-java-8.0.12.jar --dependencies=javax.api,javax.transaction.api
Also if we have examples showing adding custom modules (other than JDBC), these dependencies are a good default recommendation.
- clones
-
JBEAP-20635 [GSS](7.3.z) JDBC Drivers deployed in a custom module should depend on sun.jdk, ibm.jdk, javaee.api
- Closed