complexType resource-refType

complexType {http://java.sun.com/xml/ns/j2ee}resource-refType

Abstractfalse (This can be used in an instance)
Target Namespacehttp://java.sun.com/xml/ns/j2ee
Declared Namespacesxmlns:xsd=http://www.w3.org/2001/XMLSchema
xmlns:j2ee=http://java.sun.com/xml/ns/j2ee


Source

<xsd:complexType name="resource-refType">
    <
xsd:annotation>
        <
xsd:documentation>
The resource-refType contains a declaration of a
Deployment Component's reference to an external resource. It
consists of an optional description, the resource manager
connection factory reference name, the indication of the
resource manager connection factory type expected by the
Deployment Component code, the type of authentication
(Application or Container), and an optional specification of
the shareability of connections obtained from the resource
(Shareable or Unshareable).

Example:

<resource-ref>
<res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
        
</xsd:documentation>
    </
xsd:annotation>
    <
xsd:sequence>
        <
xsd:element name="description" type="j2ee:descriptionType" minOccurs="0"
            
maxOccurs="unbounded"/>
        <
xsd:element name="res-ref-name" type="j2ee:jndi-nameType">
            <
xsd:annotation>
                <
xsd:documentation>
The res-ref-name element specifies the name of a
resource manager connection factory reference.
The name is a JNDI name relative to the
java:comp/env context.
The name must be unique within a Deployment File.
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:element name="res-type" type="j2ee:fully-qualified-classType">
            <
xsd:annotation>
                <
xsd:documentation>
The res-type element specifies the type of the data
source. The type is specified by the fully qualified
Java language class or interface
expected to be implemented by the data source.
                
</xsd:documentation>
            </
xsd:annotation>
        </
xsd:element>
        <
xsd:element name="res-auth" type="j2ee:res-authType"/>
        <
xsd:element name="res-sharing-scope" type="j2ee:res-sharing-scopeType" minOccurs="0"/>
    </
xsd:sequence>
    <
xsd:attribute name="id" type="xsd:ID"/>
</
xsd:complexType>


Documentation

	  The resource-refType contains a declaration of a
	  Deployment Component's reference to an external resource. It
	  consists of an optional description, the resource manager
	  connection factory reference name, the indication of the
	  resource manager connection factory type expected by the
	  Deployment Component code, the type of authentication
	  (Application or Container), and an optional specification of
	  the shareability of connections obtained from the resource
	  (Shareable or Unshareable).
	  Example:
	  <resource-ref>
	      <res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
	      <res-type>javax.sql.DataSource</res-type>
	      <res-auth>Container</res-auth>
	      <res-sharing-scope>Shareable</res-sharing-scope>
	  </resource-ref>


complexType resource-refType


Stylus Studio XML Schema Library Home
Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio®, a product from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2006 All Rights Reserved.