此内容没有您所选择的语言版本。
14.3.3. Access Vendor Specific Classes
Summary
This topic covers the steps required to use the JDBC specific classes. This is necessary when an application uses a vendor specific functionality that is not part of the JDBC API.
Warning
This is advanced usage. Only applications that need functionality not found in the JDBC API should implement this procedure.
Important
This process is required when using the reauthentication mechanism, and accessing vendor specific classes.
Important
Follow the vendor specific API guidelines closely, as the connection is being controlled by the IronJacamar container.
Prerequisites
Procedure 14.2. Add a Dependency to the Application
Configure the
MANIFEST.MF
file- Open the application's
META-INF/MANIFEST.MF
file in a text editor. - Add a dependency for the JDBC module and save the file.
Dependencies: MODULE_NAME
Dependencies: MODULE_NAME
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example 14.2. Example Dependency
Dependencies: com.mysql
Dependencies: com.mysql
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Create a
jboss-deployment-structure.xml
fileCreate a file calledjboss-deployment-structure.xml
in theMETA-INF/
orWEB-INF
folder of the application.Example 14.3. Example
jboss-deployment-structure.xml
fileCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Example 14.4. Access the Vendor Specific API
The example below accesses the MySQL API.