7.5.7 CSCIWManagementServerの設定
(1) セキュリティロールの設定
CSCIWManagementServerで使用するセキュリティロールを設定します。セキュリティロールは,セキュリティロールの登録,ユーザの登録,セキュリティロールとユーザの関連づけという手順で設定します。
- セキュリティロールの登録
次のコマンド(cjaddsec)を実行して,セキュリティロールを登録します。セキュリティロール名は「csciwdef」を設定します。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjaddsec" J2EE_SERV -type role -name csciwdef |
コマンドを実行すると,次の実行結果が表示され,セキュリティロールの登録が完了します。
KDJE37400-I Connecting to J2EE_SERV...
KDJE37406-I Adding csciwdef...
KDJE37503-I Role has been added successfully. (name = [csciwdef]) |
- ユーザの登録
次のコマンド(cjaddsec)を実行して,ユーザを登録します。次の例では,ユーザ名に「admin」,パスワードに「admin」を設定します。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjaddsec" J2EE_SERV -type user -name admin -password admin |
コマンドを実行すると,次の実行結果が表示され,ユーザの登録が完了します。
KDJE37400-I Connecting to J2EE_SERV...
KDJE37406-I Adding admin...
KDJE37503-I User has been added successfully. (name = [admin]) |
- セキュリティロールとユーザの関連づけ
次のコマンド(cjmapsec)を実行して,セキュリティロールとユーザを関連づけます。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjmapsec" J2EE_SERV -role csciwdef -user admin |
コマンドを実行すると,次の実行結果が表示され,セキュリティロールとユーザの関連づけが完了します。
KDJE37400-I Connecting to J2EE_SERV...
KDJE37401-I Searching csciwdef...
KDJE37401-I Searching admin...
KDJE37415-I Mapping admin...
KDJE37514-I User has been mapped successfully. (name = [admin]) |
(2) CSCIWManagementServerのインポート
次のコマンド(cjimportapp)を実行して,CSCIWManagementServerをインポートします。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjimportapp" J2EE_SERV -f "%CSCIW_HOME%¥lib¥csciw.ear" |
コマンドを実行すると,次の実行結果が表示され,CSCIWManagementServerのインポートが完了します。
KDJE37048-I Connecting to J2EE_SERV...
KDJE37050-I Importing CSCIWManagementServer...
KDJE37041-I Application has been imported successfully. Name=[CSCIWManagementServer] |
(3) CSCIWManagementServerの属性ファイルの取得
CSCIWManagementServerの属性ファイルを「MyCSCIW_Attr.xml」という名前でカレントディレクトリに取得します。次のコマンド(cjgetappprop)を実行します。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjgetappprop" J2EE_SERV -name CSCIWManagementServer -type all -c MyCSCIW_Attr.xml |
コマンドを実行すると,次の実行結果が表示され,CSCIWManagementServerの属性ファイルの取得が完了します。
KDJE37400-I Connecting to J2EE_SERV...
KDJE37401-I Searching CSCIWManagementServer...
KDJE37408-I Acquiring CSCIWManagementServer...
KDJE37505-I Application has been obtained successfully. (name = [CSCIWManagementServer]) |
(4) CSCIWManagementServerの属性ファイルの編集
取得したCSCIWManagementServerの属性ファイルを次のとおり編集します。
表7-12 CSCIWManagementServerの属性ファイルの設定値
設定項目 | 設定値 |
---|
開始順位 | 0 |
セキュリティロール名 | csciwdef |
リソース参照のリンク先 | DB_Connector_for_Manager (リソースアダプタの表示名) |
CSCIWManagementServerの属性ファイルの編集例については,「付録D.2 CSCIWManagementServerの属性ファイル」を参照してください。
(5) CSCIWManagementServerの属性ファイルの反映
次のコマンド(cjsetappprop)を実行して,編集したCSCIWManagementServerの属性ファイルの内容を反映します。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjsetappprop" J2EE_SERV -name CSCIWManagementServer -type all -c MyCSCIW_Attr.xml |
コマンドを実行すると,次の実行結果が表示され,反映が完了します。
KDJE37400-I Connecting to J2EE_SERV...
KDJE37401-I Searching CSCIWManagementServer...
KDJE37409-I Setting CSCIWManagementServer...
KDJE37506-I Application has been set successfully. (name = [CSCIWManagementServer]) |
(6) CSCIWManagementServerの開始
次のコマンド(cjstartapp)を実行して,CSCIWManagementServerを開始します。
"%COSMINEXUS_HOME%¥CC¥admin¥bin¥cjstartapp" J2EE_SERV -name CSCIWManagementServer |
コマンドを実行すると,次の実行結果が表示され,CSCIWManagementServerが開始されます。
KDJE37048-I Connecting to J2EE_SERV...
KDJE37049-I Searching CSCIWManagementServer...
KDJE37054-I Starting CSCIWManagementServer...
Creation of the configuration for the J2EE application "CSCIWManagementServer" is in progress.Verification of the EJBs is in progress.
Verification of the EJB "CSCIWDefinitionServer" is in progress.
Verification of the EJB "CSCIWAuthenticationManager" is in progress.
Verification of the EJB "IDStoreEJB" is in progress.
Loading of the EJB-JAR deployment descriptors in the J2EE application "CSCIWManagementServer" is in progress.
Generation of the IIOP stubs/classes for the J2EE application "CSCIWManagementServer" is in progress.
The deployment environment will now be set.
Deployment of the EJB "CSCIWDefinitionServer" is in progress.
Instantiating home for CSCIWDefinitionServer
Deployment of the EJB "CSCIWAuthenticationManager" is in progress.
Instantiating home for CSCIWAuthenticationManager
Deployment of the EJB "IDStoreEJB" is in progress.
Instantiating home for IDStoreEJB
Deployment of all the web components for the J2EE Application "CSCIWManagementServer" is in progress.
Exporting of the client files is in progress.
Starting CSCIWDefinitionServer
Binding Home interfaces for CSCIWDefinitionServer
Creating Environment Naming Context for CSCIWDefinitionServer
CSCIWDefinitionServer started
The home interface for CSCIWDefinitionServer will now be published.
Starting CSCIWAuthenticationManager
Binding Home interfaces for CSCIWAuthenticationManager
Creating Environment Naming Context for CSCIWAuthenticationManager
CSCIWAuthenticationManager started
The home interface for CSCIWAuthenticationManager will now be published.
Starting IDStoreEJB
Binding Home interfaces for IDStoreEJB
Creating Environment Naming Context for IDStoreEJB
IDStoreEJB started
The home interface for IDStoreEJB will now be published.
The Web component CSCIWManagementServer will now be started.
KDJE37045-I Application has been started successfully. Name=[CSCIWManagementServer] |