@ejb.resource-ref

有効範囲: クラス

多重度

(0..*): このタグは、Java™ ソース・ファイルで、0 回から複数回使用できます。

目的

このタグは、タイプ res-type の リソースに対して、名前が res-ref-name であるリソース参照を定義します。 認証は、res-auth で指定された値で行われます。 すべての EJB タイプに適用されます。

パラメーター

パラメーター 適用度 説明 必須
res-ref-name テキスト   エンタープライズ Bean のコードで使用される環境エントリーの名前。 true
res-type テキスト   リソース・タイプ。 true
res-auth テキスト   リソース認証タイプ。以下のいずれかの属性を指定する必要があります。
  • Container
  • Application
  • both
デフォルト値は次のとおりです。
  • Container
true
res-sharing-scope テキスト   リソース共有の有効範囲。以下のいずれかの属性を指定する必要があります。
  • Shareable
  • Unshareable
デフォルト値は次のとおりです。
  • Shareable
false
jndi-name テキスト   リソースの物理 jndi-name false
関連資料
@ejb.bean
@ejb.create-method
@ejb.ejb-external-ref
@ejb.ejb-ref
@ejb.env-entry
@ejb.facade
@ejb.facade-method
@ejb.finder
@ejb.home
@ejb.home-method
@ejb.interface
@ejb.interface-method
@ejb.permission
@ejb.persistence
@ejb.persistence (method)
@ejb.pk
@ejb.pk-field
@ejb.relation
@ejb.remote-facade
@ejb.resource-env-ref
@ejb.security-identity
@ejb.security-role-ref
@ejb.select
@ejb.session
@ejb.transaction
@ejb.util
@ejb.value-object
@ejb.value-object-method

フィードバック