javaee:message-destination-refType

The message-destination-ref element contains a declaration
	  of Deployment Component's reference to a message destination
	  associated with a resource in Deployment Component's
	  environment. It consists of:

		  - an optional description
		  - the message destination reference name
		  - an optional message destination type
		  - an optional specification as to whether
		    the destination is used for
		    consuming or producing messages, or both.
		    if not specified, "both" is assumed.
		  - an optional link to the message destination
		  - optional injection targets

	  The message destination 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.

	  Examples:

	  <message-destination-ref>
		  <message-destination-ref-name>jms/StockQueue
		  </message-destination-ref-name>
		  <message-destination-type>javax.jms.Queue
		  </message-destination-type>
		  <message-destination-usage>Consumes
		  </message-destination-usage>
		  <message-destination-link>CorporateStocks
		  </message-destination-link>
	  </message-destination-ref>

Complex Type Information

Model

Attributes

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

Used By

Source

<xsd:complexType name="message-destination-refType">
  <xsd:annotation>
    <xsd:documentation>
      <![CDATA[

	  The message-destination-ref element contains a declaration
	  of Deployment Component's reference to a message destination
	  associated with a resource in Deployment Component's
	  environment. It consists of:

		  - an optional description
		  - the message destination reference name
		  - an optional message destination type
		  - an optional specification as to whether
		    the destination is used for
		    consuming or producing messages, or both.
		    if not specified, "both" is assumed.
		  - an optional link to the message destination
		  - optional injection targets

	  The message destination 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.

	  Examples:

	  <message-destination-ref>
		  <message-destination-ref-name>jms/StockQueue
		  </message-destination-ref-name>
		  <message-destination-type>javax.jms.Queue
		  </message-destination-type>
		  <message-destination-usage>Consumes
		  </message-destination-usage>
		  <message-destination-link>CorporateStocks
		  </message-destination-link>
	  </message-destination-ref>

	  ]]>
    </xsd:documentation>
  </xsd:annotation>
  <xsd:sequence>
    <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
    <xsd:element name="message-destination-ref-name" type="javaee:jndi-nameType">
      <xsd:annotation>
        <xsd:documentation>The message-destination-ref-name element specifies the name of a message destination reference; its value is the environment entry name used in Deployment Component code. The name is a JNDI name relative to the java:comp/env context and must be unique within an ejb-jar (for enterprise beans) or a Deployment File (for others).</xsd:documentation>
      </xsd:annotation>
    </xsd:element>
    <xsd:element name="message-destination-type" type="javaee:message-destination-typeType" minOccurs="0"/>
    <xsd:element name="message-destination-usage" type="javaee:message-destination-usageType" minOccurs="0"/>
    <xsd:element name="message-destination-link" type="javaee:message-destination-linkType" minOccurs="0"/>
    <xsd:group ref="javaee:resourceGroup"/>
  </xsd:sequence>
  <xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>