JDBC Driver for CData Connect

Build 25.0.9434

Establishing a Connection

Creating a JDBC Data Source

You can create a JDBC data source to connect from your Java application. Creating a JDBC data source based on the JDBC Driver for CData Connect consists of three basic steps:

  1. Add the driver JAR file to the classpath. The JAR file is located in the lib subfolder of the installation directory.
  2. Provide the driver class. For example:
    cdata.jdbc.connect.ConnectDriver
  3. Provide the JDBC URL. For example:
    jdbc:connect:AuthScheme=basic;URL=http://hostname:port/rest.rsc;User=my_user;Password=my_password;
    
    or
    
    jdbc:cdata:connect:AuthScheme=basic;URL=http://hostname:port/rest.rsc;User=my_user;Password=my_password;

    You can use the second format above whenever there is a conflict in your application between drivers using the same URL format to ensure you are using the CData driver. The URL must start with either "jdbc:connect:" or "jdbc:cdata:connect:" and can include any of the connection properties in name-value pairs separated with semicolons.

Establishing a Connection

Connecting to CData Connect Cloud

CData Connect Cloud supports two ways to authenticate: OAuth and ClientJWT.

OAuth Authentication

Use OAuth authentication when you want users to authenticate interactively via their CData Connect Cloud credentials. To configure OAuth authentication, set the following in the Admin Console:

  • AuthScheme: OAuth.
  • Click Test Connection or Sign In to open the OAuth sign-in page.
  • Enter your CData Connect Cloud credentials and sign-in.

ClientJWT Authentication

Use ClientJWT authentication when your application needs to connect using a pre-signed JWT token. This method is commonly used in OEM deployments or automated workflows. To configure ClientJWT authentication, set the following connection properties in the Admin Console:

Connecting to CData Connect Server

To connect to CData Connect Server, set the following connection properties in the Admin Console:

  • AuthScheme: Basic.
  • URL: The REST URL found on the Endpoints page of the Admin Console.
  • User: A user that you configured in the Connect Server dashboard.
  • Password: The AuthToken for the chosen user.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434