xml elements that are used for Web applications
that are part of a full J2EE environment. We provide a brief summary here; for
details, see Chapter 5 of the Java 2 Platform Enterprise Edition version 1.4 specification
at http://java.sun.com/j2ee/j2ee-1_4-fr-spec.pdf.
resource-env-ref
The resource-env-ref element declares an administered object associated
with a resource. It consists of an optional description element, a
resource-env-ref-name element (a Java Naming and Directory
Interface [JNDI] name relative to the java:comp/env context), and a
resource-env-type element (the fully qualified class designating the type
of the resource), as follows:
jms/StockQueue
javax.jms.Queue
Chapter 2 ?– Controlling Web Application Behavior with web.xml 98
resource-ref
The resource-ref element declares an external resource used with a
resource factory. It consists of an optional description element, a
res-ref-name element (the resource manager connection-factory reference
name), a res-type element (the fully qualified class name of the factory
type), a res-auth element (the type of authentication used??”Application
or Container), and an optional res-sharing-scope element (a specification
of the shareability of connections obtained from the resource??”Shareable
or Unshareable.
Pages:
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144