製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

BigCommerce JDBC Driver

BigCommerce EC データに連携するJava アプリケーションを素早く、簡単に開発できる便利なドライバー。

データ連携でお困りですか?

お問い合わせ

Connect to BigCommerce from a Connection Pool in WebLogic


Use the CData JDBC Driver for BigCommerce to connect to BigCommerce data from Web applications running on WebLogic.


bigcommerce ロゴ画像
jdbc ロゴ画像

JDBC

WebLogic

The CData JDBC Driver for BigCommerce enables you to follow standard procedures to integrate BigCommerce data into Java Web applications. This article shows how to deploy the CData JDBC Driver for BigCommerce in WebLogic server.

Install the JDBC Driver in WebLogic Server

Add the driver JAR and license file to the classpath your application will be using. The .lic file must be located in the same folder as the JAR. These files are located in the lib subfolder of the installation directory.

If you want to add the driver to all domains, add the JAR to the WEBLOGIC_CLASSPATH environment variable. add the following line to the commEnv.cmd/sh script in WL_HOME\common\bin\.

set WEBLOGIC_CLASSPATH=your-installation-directory\lib\cdata.jdbc.bigcommerce.jar;%WEBLOGIC_CLASSPATH%

If you want to add the driver to a specific domain, you will need to add the JAR to the PRE_CLASSPATH environment variable. Add the following line to the setDomainEnv.cmd/sh script in the bin subfolder of the folder for that domain:

set PRE_CLASSPATH=your-installation-directory\lib\cdata.jdbc.bigcommerce.jar;%PRE_CLASSPATH%

Create a JDBC Data Source for BigCommerce

After installing the driver, create the connection.

  1. In the Domain Structure tree, click Services -> Data Sources -> New -> Generic Data Source.
  2. On the JDBC Data Source Properties page, enter the following information:
    • Name: Enter a user-friendly name; for example, bigcommercejdbc.
    • JDBC Name: Enter the path the JDBC data source will be bound to; for example, jdbc/BigCommerce.
    • Database Type: Select Other.

    A user-friendly name and the path to bind to. (Salesforce is shown.)
  3. Click Next to use the default options. On the last page, enter the following information and click Test Configuration:

    • Driver Class Name: Enter the driver class, cdata.jdbc.bigcommerce.BigCommerceDriver, in this property.
    • URL: Enter the JDBC URL. A typical JDBC URL is below:

      jdbc:bigcommerce:OAuthClientId=YourClientId; OAuthClientSecret=YourClientSecret; StoreId='YourStoreID'; CallbackURL='http://localhost:33333'

      BigCommerce 認証は標準のOAuth フローに基づいています。

      Store ID の取得

      BigCommerce Store に接続するには、StoreId が必要です。Store Id を確認するには、以下の手順に従ってください。

      1. BigCommerce アカウントにログインします。
      2. ホームページから「Advanced Settings」->「API Accounts」 を選択します。
      3. 「Create API Account」->「Create V2/V3 API Token」をクリックします。
      4. 画面にAPI Path という名前のテキストボックスが表示されます。
      5. テキストボックス内に、次の構造のURL が表示されます:https://api.bigcommerce.com/stores/{Store Id}/v3。
      6. 上記で示したように、Store Id は'stores/' と'/v3' パスパラメータの間にあります。
      7. Store Id を取得したら、「キャンセル」 をクリックするか、まだ持っていない場合はAPI Account の作成に進むことができます。

      パーソナルアクセストークンの取得

      加えて、自分のデータをテストおよびアクセスするには、個人用トークンを取得する必要があります。個人用トークンを取得する方法は次のとおりです。

      1. BigCommerce アカウントにログインします。
      2. ホームページから「Advanced Settings」->「API Accounts」 を選択します。
      3. 「Create API Account」->「Create V2/V3 API Token」をクリックします。
      4. アカウント名を入力します。
      5. 作成するAPI Account の「OAuth Scopes」を選択します。本製品 は"None" とマークされたデータにアクセスできません。また、"read-only" とマークされたデータを変更できません。
      6. 「保存」をクリックします。

      BigCommerce への認証

      次に、以下を設定してデータに接続できます。
      • StoreId:API Path テキストボックスから取得したStore ID に設定。
      • OAuthAccessToken:生成したトークンに設定。
      • InitiateOAuth:OFF に設定。

    • Database User Name: Enter the username, if not specified in the JDBC URL.
    • Password: Enter the password, if not specified in the JDBC URL.
    Driver connection properties. (Salesforce is shown.)

After selecting the server where you want to deploy the JDBC data source, you can now connect to BigCommerce data.

The data source deployed on the target server and enabled for connection pooling. (Salesforce is shown.)

More WebLogic Integration

The steps above show how configure the driver in a simple connection pooling scenario. For more use cases and information, see the JDBC sections in the WebLogic Data Sources chapter of the Oracle Fusion Middleware documentation.