Cosminexus アプリケーションサーバ V8 アプリケーション開発ガイド
インポートしたリソースアダプタをJ2EEアプリケーションで使用するためには,リソースアダプタのプロパティを設定する必要があります。ここでは,デプロイされたリソースアダプタの設定手順を説明します。リソースアダプタのプロパティ設定には,サーバ管理コマンド(cjgetrarpropおよびcjsetrarprop)を使用します。
次の手順でリソースアダプタのプロパティを設定してください。
なお,リソースアダプタのプロパティを設定するためには,次の条件を満たしている必要があります。
cjgetrarprop <J2EEサーバ名> -resname <リソースアダプタの表示名> -c <Connector属性ファイルのパス> |
<hitachi-connector-property>
(略)
<resourceadapter>
<outbound-resourceadapter>
<connection-definition>
(略)
<config-property>
<description xml:lang="en"/>
<config-property-name>networkProtocol</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>lib</config-property-value> … Cosminexus DABroker Libraryとの接続種別を設定します。
</config-property>
<config-property>
<description xml:lang="en"/>
<config-property-name>databaseName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>HIRDB</config-property-value> … 接続するデータベースの種別を設定します。
</config-property>
<config-property>
<description xml:lang="en"/>
<config-property-name>description</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>22200</config-property-value> … 組み込みデータベースのポート番号を指定します。
</config-property>
<config-property>
<description xml:lang="en"/>
<config-property-name>DBHostName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>localhost</config-property-value> … 接続する組み込みデータベースのホスト名を設定します。
</config-property>
(略)
<connector-runtime>
<property>
<property-name>User</property-name>
<property-type>String</property-type>
<property-value>USER1</property-value> … ユーザ名を設定します。※1
</property>
<property>
<property-name>Password</property-name>
<property-type>String</property-type>
<property-value>PSWD</property-value> … パスワードを設定します。※1
</property>
<property>
<property-name>MaxPoolSize</property-name>
<property-type>int</property-type>
<property-value>8</property-value> … コネクション・プールの最小値を設定します。※2
</property>
|
<property>
<property-name>MinPoolSize</property-name>
<property-type>int</property-type>
<property-value>1</property-value> … コネクション・プールの最大値を設定します。※2
</property>
</connector-runtime>
(略)
</connection-definition>
(略)
</outbound-resourceadapter>
</resourceadapter>
</hitachi-connector-property> |
cjsetrarprop <J2EEサーバ名> -resname <リソースアダプタの表示名> -c <Connector属性ファイルのパス> |
cjtestres <J2EEサーバ名> -type rar -resname <リソースアダプタの表示名> |
All Rights Reserved. Copyright (C) 2008, 2011, Hitachi, Ltd.