Google Data Catalog をJava サーブレットに統合します。JBoss のManagement Console を使用して、CData JDBC Driver for Google Data Catalog をインストールします。
CData JDBC ドライバーは、コネクションプールの標準手順に従ってJBoss で構成できます。この記事では、JBoss アプリケーションのコネクションプールからSalesforce データにアクセスする方法について詳しく説明します。また、JBoss Management Interface を使用してCData JDBC Driver for Google Data Catalog を設定する方法についても詳しく説明します。最後には、コネクションプールからGoogle Data Catalog にアクセスできるようになります。
※製品について詳しい情報をご希望の方は以下からお進みください。
- Google Data Catalog にほかのBI、ETL、開発ツールから接続したい:Google Data Catalog データ連携ガイドおよびチュートリアルのリストへ
- Google Data Catalog Drivers について詳細を知りたい:ドライバー詳細情報ページへ
- ほかのデータソースに連携したい:CData Drivers 一覧へ
- ドライバーの30日の無償トライアル版を使いたい:トライアル版ダウンロードページへ
- 製品の利用やライセンスについて相談したい:sales@cdata.co.jp までメールにてご相談ください。
Management Console からJDBC Data Source for Google Data Catalog を作成
以下のステップに従ってドライバーJAR を追加し、必要な接続プロパティを定義します。
- [Runtime]メニューで、展開先がマネージドドメインかスタンドアロンサーバーかに応じて[Domain]または[Server]メニューを選択し、[Manage deployments]をクリックして[Deployments]ページを開きます。
- [Add]をクリックします。表示されるウィザードで、インストールディレクトリのlib サブフォルダにあるドライバーのJAR ファイルとライセンスを追加します。ウィザードをデフォルトで終了し、ドライバーを選択して[Enable]をクリックします。
- [Configuration]メニューで[Subsystems]->[Connector]->[Datasources]と進みます。これにより、JDBC データソースページが開きます。
- [Add]をクリックし、表示されるウィザードでドライバーとJNDI の名前を入力します。例:
java:jboss/root/jdbc/GoogleDataCatalog
- 上で追加したドライバーを選択します。
- JDBC URL、ユーザー名、パスワードを入力します。JDBC URL の構文は、jdbc:googledatacatalog: の後にセミコロンで区切られた接続プロパティのリストが続きます。
Google Data Catalog uses the OAuth authentication standard. Authorize access to Google APIs on behalf on individual users or on behalf of users in a domain.
Before connecting, specify the following to identify the organization and project you would like to connect to:
- OrganizationId: The ID associated with the Google Cloud Platform organization resource you would like to connect to. Find this by navigating to the cloud console.
Click the project selection drop-down, and select your organization from the list. Then, click More -> Settings. The organization ID is displayed on this page.
- ProjectId: The ID associated with the Google Cloud Platform project resource you would like to connect to.
Find this by navigating to the cloud console dashboard and selecting your project from the Select from drop-down. The project ID will be present in the Project info card.
When you connect, the OAuth endpoint opens in your default browser. Log in and grant permissions to the application to completes the OAuth process. For more information, refer to the OAuth section in the Help documentation.
以下は一般的な接続文字列です。
jdbc:googledatacatalog:ProjectId=YourProjectId;
接続を確認したらウィザードを終了します。Google Data Catalog のデータソースを選択し、[Enable]をクリックします。
- OrganizationId: The ID associated with the Google Cloud Platform organization resource you would like to connect to. Find this by navigating to the cloud console.

その他のJBoss 統合
上記のステップは、単純なコネクションプールのシナリオでドライバーを構成する方法を示しています。より詳しい情報については、JBoss EAP ドキュメントの[Data Source Management]の章を参照してください。