@ejb.resource-ref

Scope: Class

Multiplicity

(0..*): You can use this tag zero to many times in the Java™ source file.

Purpose

This tag defines a resource reference with the name res-ref-name to a resource of type res-type, and the authentication is done by the one specified in res-auth. Applies to all EJB types.

Parameters

Parameter Type Applicability Description Mandatory
res-ref-name text   The name of the environment entry used in the code of the enterprise bean. true
res-type text   The resource type. true
res-auth text   The resource authentication type. You must specify one of the following attributes:
  • Container
  • Application
  • both
The default value is
  • Container
true
res-sharing-scope text   The resource sharing scope. You must specify one of the following attributes:
  • Shareable
  • Unshareable
The default value is
  • Shareable
false
jndi-name text   The physical jndi-name of the resource. false

Feedback