@web.resource-ref

Scope: Class

Multiplicity

(0..1): You can use this tag zero or one time in the Java™ source file.

Purpose

This tag defines a resource reference with the specified name, type, authentication (auth), description, and scope. Applies to servlets.

Parameters

Parameter Type Applicability Description Mandatory
name text   The name of the resource reference. true
type text   The type of the referenced resource. true
auth text   The authentication for the resource. You must specify one of the following attributes:
  • Application
  • Container
true
description text   An optional description for the resource reference. false
scope text   The scope of the resource. You must specify one of the following attributes:
  • Shareable
  • Unshareable
false
jndi-name text   The physical jndi-name of the resource. false
Related reference
@web.ejb-local-ref
@web.ejb-ref
@web.env-entry
@web.filter
@web.filter-init-param
@web.filter-mapping
@web.listener
@web.resource-env-ref
@web.security-role
@web.security-role-ref
@web.servlet
@web.servlet-init-param
@web.servlet-mapping
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.