이 콘텐츠는 선택한 언어로 제공되지 않습니다.
1.11. 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 1.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