接続の確立
JDBC データソースの作成
Java アプリケーションから接続するJDBC データソースを作成できます。CData JDBC Driver for SAP Success Factors LMS に基づくJDBC データソースの作成は、3つの基本ステップで構成されます。
- ドライバーのJAR ファイルをクラスパスに追加します。JAR ファイルはインストールディレクトリの[lib]サブフォルダ内にあります。.lic ファイルはJAR ファイルと同じフォルダ内に配置される必要があることに注意してください。
- ドライバークラスを入力します。次に例を示します。
cdata.jdbc.sapsuccessfactorslms.SAPSuccessFactorsLMSDriver
- JDBC URL を入力します。次に例を示します。
jdbc:sapsuccessfactorslms:User=username;UserType=Password;CompanyId=CompanyId;Url=https://api4.successfactors.com or jdbc:cdata:sapsuccessfactorslms:User=username;UserType=Password;CompanyId=CompanyId;Url=https://api4.successfactors.com
上記の2つ目の形式は、同じURL 形式を使用しているドライバー間でアプリケーションに競合がある場合は、CData ドライバーを使用していることを確認するために常に使用できます。URL は "jdbc:sapsuccessfactorslms:" または"jdbc:cdata:sapsuccessfactorslms:" のいずれかから始まり、任意の接続プロパティの名前と値のペアをセミコロン区切りで入力します。
Connecting to SAPSuccessFactorsLMS
Before you can connect to SAPSuccessFactorsLMS, you must configure the OAuth application tied to your SAPSuccessFactorsLMS account. See Creating a Custom OAuth App for a procedure.After you have configured your OAuth application, set the following to connect:
- URL: The base URL of your SAP SuccessFactors instance. You can find this value in the URL of your SAP SuccessFactors homepage before the first forward slash (/). For example: https://mycompany.successfactors.eu
- User: The username you use to log in to your SAP SuccessFactors account.
- CompanyId: The unique name assigned to your SAPSuccessFactorsLMS tenant. You can find this value in the URL of your SAP SuccessFactors homepage, between "https://" and ".successfactors" (or ".sapsf" in the case of preview instances).
- UserType: The type of user being used. Select either Admin if your account has the admin role or User if it does not.
- OAuthClientId: The value of the Client ID field, as noted during the configuration of your OAuth application.
- OAuthClientSecret: The value of the Newly Generated Client Secret, as noted during the configuration of your OAuth application.