此内容没有您所选择的语言版本。
2.10. Create a Connection to a VDB Using the Data Source Class
Prerequisites
- The client application must have the JBoss Data Virtualization
EAP_HOME/dataVirtualization/jdbc/teiid-VERSION-redhat-N-jdbc.jar
JAR file in its classpath. (If the application is running on the same application server as the JBoss Data Virtualization instance to which the connection is desired, then this will already be the case.) - JBoss Data Virtualization must be installed and running, with the relevant virtual databases (VDBs) deployed.
Procedure 2.2. Create a Connection to a VDB Using the Data Source Class
Create a Connection Object
Create aorg.teiid.jdbc.TeiidDataSource
object, set the required properties, and use theTeiidDataSource.getConnection()
method to obtain a Connection object. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow