Interstage Application Server J2EE ユーザーズガイド |
目次
索引
![]() ![]() |
第3部 EJB編 | > 第16章 運用コマンドを使用してカスタマイズする方法 |
Enterprise Bean定義ファイルはXML形式で記述します。
ファイルの内容は以下のとおりです。
タグ名 |
値 |
意味 |
編集 |
Interstage管理コンソール画面との対応 |
|||||||||||||||
session entity |
ejb-name? |
任意の文字列 |
Enterprise Bean名 |
× |
EJBアプリケーション情報 |
||||||||||||||
home? |
任意の文字列 |
Homeインタフェース名 |
× |
||||||||||||||||
remote? |
任意の文字列 |
Remoteインタフェース名 |
× |
||||||||||||||||
Local-home? |
任意の文字列 |
LocalHomeインタフェース名 |
× |
||||||||||||||||
local? |
任意の文字列 |
Localインタフェース名 |
× |
||||||||||||||||
ejb-class? |
任意の文字列 |
Enterprise Beanクラス名 |
× |
||||||||||||||||
session-type? |
以下の値から選択
|
セション種別 |
× |
||||||||||||||||
transaction-type? |
以下の値から選択
|
トランザクション管理種別 |
○ |
||||||||||||||||
env-entry+ |
description? |
任意の文字列 |
説明 |
× |
環境プロパティ |
||||||||||||||
env-entry-name |
任意の文字列 export時に、定義ファイルとEnterprise Bean定義情報の間で、env-entry-nameの整合性がとれていない場合、エラーとなります。 |
プロパティ名 |
× |
||||||||||||||||
env-entry-type |
以下の値から選択
|
型 |
○ |
||||||||||||||||
env-entry-value? |
以下の範囲の値
|
値 |
○ |
||||||||||||||||
ejb-ref+ |
description? |
任意の文字列 |
説明 |
× |
参照EJB |
||||||||||||||
ejb-ref-name |
任意の文字列 |
Enterprise BeanのJNDI名 |
× |
||||||||||||||||
ejb-ref-type |
以下の値から選択
|
Enterprise Bean種別 |
× |
||||||||||||||||
home |
任意の文字列 |
Homeインタフェース名 |
× |
||||||||||||||||
remote |
任意の文字列 |
Remoteインタフェース名 |
× |
||||||||||||||||
ejb-link? |
任意の文字列 |
Enterprise Bean名 |
× |
||||||||||||||||
ejb-local-ref+ |
ejb-local-ref-name |
任意の文字列 |
Enterprise BeanのJNDI名 |
× |
参照LocalEJB |
||||||||||||||
ejb-local-link? |
任意の文字列 |
Enterprise Bean名 |
× |
||||||||||||||||
ejb-ref-type |
以下の値から選択
|
Enterprise Bean種別 |
× |
||||||||||||||||
local-home |
任意の文字列 |
LocalHomeインタフェース名 |
× |
||||||||||||||||
local |
任意の文字列 |
Localインタフェース名 |
× |
||||||||||||||||
security- |
description? |
任意の文字列 |
説明 |
× |
参照セキュリティロール |
||||||||||||||
role-name |
任意の文字列 |
コード化セキュリティロール名 |
× |
||||||||||||||||
role-link |
任意の文字列 |
セキュリティロール名 |
× |
||||||||||||||||
security- |
use-caller- |
なし(run-asとは排他指定) |
呼出し側のセキュリティを使用 |
○ |
セキュリティアイデンティティ |
||||||||||||||
run |
description? |
任意の文字列 |
説明 |
○ |
|||||||||||||||
role-name |
任意の文字列 |
セキュリティロール名 |
○ |
||||||||||||||||
resource-ref+ |
description? |
任意の文字列 |
説明 |
× |
参照リソース |
||||||||||||||
res-ref-name |
任意の文字列 |
リソースマネージャー名 |
× |
||||||||||||||||
res-type |
任意の文字列 |
クラス/インタフェース名 |
× |
||||||||||||||||
res-auth |
以下の値から選択
|
リソース接続者 |
× |
||||||||||||||||
resource-env-ref+ |
description? |
任意の文字列 |
説明 |
× |
参照環境リソース |
||||||||||||||
resource-env-ref-name |
任意の文字列 |
リソースマネージャー名 |
× |
||||||||||||||||
resource-env-ref-type |
任意の文字列 |
クラス/インタフェース名 |
× |
||||||||||||||||
ejb-name? |
任意の文字列 |
Enterprise Bean名 |
× |
EJBアプリケーション情報 |
|||||||||||||||
home? |
任意の文字列 |
Homeインタフェース名 |
× |
||||||||||||||||
remote? |
任意の文字列 |
Remoteインタフェース名 |
× |
||||||||||||||||
localhome? |
任意の文字列 |
LocalHomeインタフェース名 |
× |
||||||||||||||||
local? |
任意の文字列 |
Localインタフェース名 |
× |
||||||||||||||||
ejb-class? |
任意の文字列 |
Enterprise Beanクラス名 |
× |
||||||||||||||||
persistence-type? |
以下の値から選択
|
Persistenceタイプ |
× |
||||||||||||||||
prim-key-class? |
任意の文字列 |
PrimaryKeyクラス名 |
× |
||||||||||||||||
reentrant? |
以下の値から選択
|
リエントラント種別 |
× |
||||||||||||||||
primkey-field? |
任意の文字列 |
PrimaryKeyフィールド名 |
× |
||||||||||||||||
env-entry+ |
sessionタグのenv-entryを参照 |
||||||||||||||||||
ejb-ref+ |
sessionタグのejb-refを参照 |
||||||||||||||||||
security-role-ref+ |
sessionタグのsecurity-role-refを参照 |
||||||||||||||||||
security-identity? |
sessionタグのsecurity-identityを参照 |
||||||||||||||||||
resource-ref+ |
sessionタグのresource-refを参照 |
||||||||||||||||||
resource-env-ref+ |
sessionタグのresource-env-refを参照 |
||||||||||||||||||
query* |
description? |
任意の文字列 |
説明 |
× |
クエリ定義 |
||||||||||||||
query-method |
method-name |
任意の文字列 |
メソッド名 |
× |
|||||||||||||||
method-params |
任意の文字列 |
パラメタ |
× |
||||||||||||||||
result-type-mapping? |
以下の値から選択
|
結果タイプ |
× |
||||||||||||||||
ejb-ql |
任意の文字列 |
EJB QL |
× |
||||||||||||||||
message-driven-bean |
ejb-name? |
任意の文字列 |
Enterprise Bean名 |
× |
EJBアプリケーション情報 |
||||||||||||||
ejb-class? |
任意の文字列 |
Enterprise Beanクラス名 |
× |
||||||||||||||||
transaction-type? |
以下の値から選択
|
トランザクション管理種別 |
○ |
||||||||||||||||
message-selector? |
任意の文字列 |
メッセージセレクタ |
○ |
||||||||||||||||
message-driven-destination? |
destination-type |
以下の値から選択
|
Destinationタイプ |
○ |
|||||||||||||||
subscription-durability? |
以下の値から選択
|
サブスクライバの永続性 |
○ |
||||||||||||||||
env-entry+ |
sessionタグのenv-entryを参照 |
||||||||||||||||||
ejb-ref+ |
sessionタグのejb-refを参照 |
||||||||||||||||||
security-identity? |
sessionタグのsecurity-identityを参照 |
||||||||||||||||||
resource-ref+ |
sessionタグのresource-refを参照 |
||||||||||||||||||
resource-env-ref+ |
sessionタグのresource-env-refを参照 |
||||||||||||||||||
relationships? |
description? |
任意の文字列 |
説明 |
× |
CMRマッピング定義 |
||||||||||||||
ejb-relation+ |
description? |
任意の文字列 |
説明 |
× |
|||||||||||||||
ejb-relation-name? |
任意の文字列 |
EJBリレーション名 |
× |
||||||||||||||||
ejb-relationship-role |
description? |
任意の文字列 |
説明 |
× |
|||||||||||||||
ejb-relationship-role-name? |
任意の文字列 |
EJBリレーションロール名 |
× |
||||||||||||||||
multiplicity |
以下の値から選択
|
多重度 |
× |
||||||||||||||||
cascade-delete? |
なし |
レコード削除 |
× |
||||||||||||||||
relationship-role-source |
description? |
任意の文字列 |
説明 |
× |
|||||||||||||||
ejb-name |
任意の文字列 |
Enterprise Bean名 |
× |
||||||||||||||||
cmr-field? |
description? |
任意の文字列 |
説明 |
× |
|||||||||||||||
cmr-field-name |
任意の文字列 |
CMRフィールド名 |
× |
||||||||||||||||
cmr-field-type? |
任意の文字列 |
型 |
× |
||||||||||||||||
ejb-relationship-role |
上記参照 |
||||||||||||||||||
security-role+ |
description? |
任意の文字列 |
説明 |
× |
セキュリティロール- |
||||||||||||||
role-name |
任意の文字列 |
セキュリティロール名 |
× |
||||||||||||||||
method-permission+ |
role-name+ |
任意の文字列 指定する文字列は、security-roleタグのrole-nameに定義されている必要があります。 |
セキュリティロール名 |
○ |
メソッドパーミッション |
||||||||||||||
method+ |
description? |
任意の文字列 |
説明 |
○ |
|||||||||||||||
ejb-name |
任意の文字列 |
Enterprise Bean名 |
× |
||||||||||||||||
method-intf |
任意の文字列 |
インタフェース名 |
× |
||||||||||||||||
method-name |
任意の文字列 |
メソッド名 |
× |
||||||||||||||||
method-params? |
任意の文字列 |
パラメタ |
× |
||||||||||||||||
container-transaction+ |
method+ |
method-permissionタグのmethodを参照 |
○ |
トランザクション |
|||||||||||||||
trans-attribute |
以下の値から選択
|
トランザクション属性 |
○ |
||||||||||||||||
description? |
任意の文字列 |
メモ |
○ |
Interstage拡張情報 |
|||||||||||||||
version-entry? |
deploy-ejb-version? |
以下の値固定
|
準拠EJB規約バージョン |
× |
|||||||||||||||
deploy-java-version? |
以下の値から選択
|
Deploy時の使用JDKバージョン |
× |
||||||||||||||||
base? |
component-name? |
任意の文字列 |
Enterprise BeanのJNDI名 |
× |
EJBアプリケーション名 |
||||||||||||||
max-instance? (注1) |
以下の範囲の値
|
初期起動インスタンス数 |
○ |
- |
|||||||||||||||
session-timeout? |
以下の範囲の値
|
セションタイムアウト値 |
○ |
||||||||||||||||
tran-timeout? |
以下の範囲の値
|
トランザクションタイムアウト値 |
○ |
||||||||||||||||
tran-kind? (注1) |
以下の値から選択
|
分散トランザクション |
○ |
||||||||||||||||
local-mode? |
以下の値から選択
|
ローカル呼出しを使用 |
○ |
Interstage拡張情報 |
|||||||||||||||
session-idle-timeout? |
以下の範囲の値
|
無通信監視時間 |
○ |
||||||||||||||||
max-ejbobject? |
以下の範囲の値
|
StatefulBean同 時接続数 |
○ |
||||||||||||||||
stateless-instance-create-type? (注2) |
以下の値から選択
|
Stateless他Bean 参照機能 |
○ |
||||||||||||||||
redirect? (注1) |
redirect-mode? |
以下の値から選択
|
標準出力、標準エラー出力取得モード |
○ |
- |
||||||||||||||
redirect-path? |
任意の文字列 |
標準出力、標準エラー出力ファイル |
○ |
||||||||||||||||
entity_eb? |
entity-timeout? |
以下の範囲の値
|
Entity BeanのEJB objectタイムアウト値 |
○ |
Interstage拡張情報 |
||||||||||||||
entity-instance-type |
以下の値から選択
|
Entity Beanのインスタンス管理モード |
○ |
||||||||||||||||
entity-instance-size |
以下の範囲の値
|
Entity Beanのインスタンス数 |
○ |
||||||||||||||||
entity-instance-create-type |
以下の値から選択
|
Entity Beanのインスタンス生成モード |
○ |
||||||||||||||||
messa- |
jms |
subscription-name? |
任意の文字列 |
サブスクライバの識別名 |
○ |
Message-driven Bean拡張情報 |
|||||||||||||
connection-factory-name? |
任意の文字列 |
JMSコネクションファクトリ名 |
○ |
||||||||||||||||
bean-pool-size? |
以下の範囲の値
|
初期起動インスタンス数 |
○ |
||||||||||||||||
destination-name? |
任意の文字列 |
Destination名 |
○ |
||||||||||||||||
retry-count? |
以下の範囲の値
|
リトライカウント |
○ |
||||||||||||||||
backup-connection-factory-name? |
任意の文字列 |
異常時ループ対処用 JMSコネクションファクトリ名 |
○ |
||||||||||||||||
backup-destination-name? |
任意の文字列 |
異常時ループ対処用 Destination名 |
○ |
||||||||||||||||
runas-entry? |
userid |
任意の文字列 |
ユーザID |
○ |
セキュリティアイデンティティ |
||||||||||||||
password |
任意の文字列 |
パスワード |
○ |
||||||||||||||||
fujitsu-cmp-definition |
datasource-name? |
任意の文字列 |
データソース名 |
○ |
CMFマッピング定義 |
||||||||||||||
schema-name? |
任意の文字列 |
スキーマ名 |
○ |
||||||||||||||||
table-name? |
任意の文字列 |
テーブル名 |
○ |
||||||||||||||||
select-for-update? |
以下の値から選択
|
findByPrimaryKeyメソッドにFOR UPDATE句を付加 |
○ |
finderメソッド定義 |
|||||||||||||||
field-map+ |
field-name |
任意の文字列 export時に、定義ファイルとEnterprise Bean定義情報の間で、field-nameの整合性がとれていない場合、エラーとなります。 |
フィールド名 |
× |
CMFマッピング定義 |
||||||||||||||
field-type? |
任意の文字列 |
型 |
× |
||||||||||||||||
dbcolumn-name |
任意の文字列 |
DBカラム名 |
○ |
||||||||||||||||
finder-map+ |
finder-key-name |
任意の文字列 export時に、定義ファイルとEnterprise Bean定義情報の間で、finder-key-nameの整合性がとれていない場合、エラーとなります。 |
メソッドシグネチャ |
× |
finderメソッド定義 |
||||||||||||||
finder-query-string |
任意の文字列 |
検索条件 |
○ |
||||||||||||||||
fujitsu-cmp2x-mapping-definition (fujitsu-cmp-definitionとは排他指定) |
datasource-name? |
任意の文字列 |
データソース名 |
○ |
CMFマッピング定義 |
||||||||||||||
ejb? |
ejb-name |
任意の文字列 |
Enterprise Bean名 |
○ |
|||||||||||||||
schema-name |
任意の文字列 |
スキーマ名 |
○ |
||||||||||||||||
table-name |
任意の文字列 |
テーブル名 |
○ |
||||||||||||||||
field-map2x |
field-map-entry2x* |
default-dbcolumn-name |
任意の文字列 |
CMPフィールド名 |
○ |
||||||||||||||
is-primary-key |
以下の値から選択
|
プライマリキー |
○ |
||||||||||||||||
foreign-key? |
foreign-ejb-name |
任意の文字列 |
外部キー |
○ |
CMRマッピング定義 |
||||||||||||||
field-name |
任意の文字列 |
CMPフィールド名 |
○ |
CMFマッピング定義 |
|||||||||||||||
dbcolumn-name |
任意の文字列 |
DBカラム名 |
○ |
||||||||||||||||
join-object* |
join-name |
任意の文字列 |
Join Table名 |
○ |
CMRマッピング定義 |
||||||||||||||
schema-name |
任意の文字列 |
スキーマ名 |
○ |
||||||||||||||||
table-name |
任意の文字列 |
テーブル名 |
○ |
||||||||||||||||
source |
ejb-name |
任意の文字列 |
Enterprise Bean名 |
○ |
|||||||||||||||
cmr-field? |
任意の文字列 |
CMRフィールド名 |
○ |
||||||||||||||||
sink |
ejb-name |
任意の文字列 |
Enterprise Bean名 |
○ |
|||||||||||||||
cmr-field? |
任意の文字列 |
CMRフィールド名 |
○ |
||||||||||||||||
field-map2x |
ejbタグのfield-map2xを参照 |
(注1) V6では定義しても無効なタグです。
(注2) 通常は使用されません。
Interstage管理コンソールで“<”、 “>”、“&”を入力した場合、exportで出力した定義ファイルには、それぞれ“<”、 “>”、“&”と表示されます。
また定義ファイル内に、“<”、 “>”、“&”を入力して、importすると以下のエラーが表示されます。定義ファイル内では、“<”、 “>”、“&”は、それぞれ“<”、“>”、“&”と記述してください。
定義ファイル(ファイル名)の読込み中にエラーが発生しました。 不明なマークアップがあります。 file:///(XX) : 行 XX, 桁 XX で上記エラーを検出しました。 EJB3504S-20-093-0203 |
Enterprise Bean定義情報をexportした場合、Enterprise Bean定義ファイルの“password”には、パスワードの文字数分“*”が出力されます。この値を変更しないでimportした場合、そのままの文字列がEnterprise Bean定義情報に反映されるので注意してください。
目次
索引
![]() ![]() |