@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
Related reference
@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
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.