javaee:resource-env-refType

The resource-env-refType is used to define
	  resource-env-type elements.  It contains a declaration of a
	  Deployment Component's reference to an administered object
	  associated with a resource in the Deployment Component's
	  environment.  It consists of an optional description, the
	  resource environment reference name, and an optional
	  indication of the resource environment reference type
	  expected by the Deployment Component code.

	  It also includes optional elements to define injection of
	  the named resource into fields or JavaBeans properties.

	  The resource environment type must be supplied unless an
	  injection target is specified, in which case the type
	  of the target is used.  If both are specified, the type
	  must be assignment compatible with the type of the injection
	  target.

	  Example:

	  <resource-env-ref>
	      <resource-env-ref-name>jms/StockQueue
	      </resource-env-ref-name>
	      <resource-env-ref-type>javax.jms.Queue
	      </resource-env-ref-type>
	  </resource-env-ref>

Complex Type Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
id xsd:ID optional

Used By

Source

<xsd:complexType name="resource-env-refType">
  <xsd:annotation>
    <xsd:documentation>
      <![CDATA[

	  The resource-env-refType is used to define
	  resource-env-type elements.  It contains a declaration of a
	  Deployment Component's reference to an administered object
	  associated with a resource in the Deployment Component's
	  environment.  It consists of an optional description, the
	  resource environment reference name, and an optional
	  indication of the resource environment reference type
	  expected by the Deployment Component code.

	  It also includes optional elements to define injection of
	  the named resource into fields or JavaBeans properties.

	  The resource environment type must be supplied unless an
	  injection target is specified, in which case the type
	  of the target is used.  If both are specified, the type
	  must be assignment compatible with the type of the injection
	  target.

	  Example:

	  <resource-env-ref>
	      <resource-env-ref-name>jms/StockQueue
	      </resource-env-ref-name>
	      <resource-env-ref-type>javax.jms.Queue
	      </resource-env-ref-type>
	  </resource-env-ref>

	  ]]>
    </xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
    <xsd:element name="resource-env-ref-name" type="javaee:jndi-nameType">
      <xsd:annotation>
        <xsd:documentation>The resource-env-ref-name element specifies the name of a resource environment reference; its value is the environment entry name used in the Deployment Component code. The name is a JNDI name relative to the java:comp/env context and must be unique within a Deployment Component.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="resource-env-ref-type" type="javaee:fully-qualified-classType" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>The resource-env-ref-type element specifies the type of a resource environment reference. It is the fully qualified name of a Java language class or interface.</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:group ref="javaee:resourceGroup"/>
  </xsd:sequence>
  <xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>